topic
stringlengths
1
63
text
stringlengths
1
577k
Como Hacer esto en FIVEWIN??
[quote="karinha":2une9ejl][quote="Armando Picon":2une9ejl][quote="karinha":2une9ejl]Gracias Armando, voy probar. Creo que la solucíon sea usar botones fijos con Hide() y Show(). Saludos.[/quote:2une9ejl] Tu sabes que existen varias maneras de hacer algo. Lo importante es que lo hagas!!![/quote:2une9ejl] Excelente. Exatamente. Armando, baje tu ejemplo, pero no tiene el que necesito. Donde cadastras las mesas? Donde estan las Bitmaps? Otra, por favor testa tu ejemplo en WINDOWS XP, no está bién. Saludos y muchas gracias.[/quote:2une9ejl]Las mesas y puntos de atención de la barra se crean a petición del operador (esa es una de las razones por lo que que no utilizo bitmaps de cada mesa o punto de atención en la barra). Voy a bajar los archivos y probarlos en una XP que tengo en casa!!!.PS. Acabo de bajar e instalar Anfitrion... Por defecto utilizo el drive D en el archivo ANFI00.INI., así que tiene que instalarlo en ese Drive. [PATHS]Login=D:\ANFITRION\LOGIN\DATOS=D:\ANFITRION\data\Indices=D:\ANFITRION\indx\Work=D:\ANFITRION\Work\Bmps=D:\ANFITRION\Bmps\Si quieres que funcione en C debes instalar alli y editar el Archivo INI y cambiar las entradas a:[PATHS]Login=C:\ANFITRION\LOGIN\DATOS=C:\ANFITRION\data\Indices=C:\ANFITRION\indx\Work=C:\ANFITRION\Work\Bmps=C:\ANFITRION\Bmps\Para aumentar la cantidad de mesas y puntos de atención en la barra puedes elegir la opción "Acerca de.../configuración" o editar ANFI00.INI y cambiar las cantidades que necesitas en:[PUNTOS]qmesas=99qbarra=99
Como Hacer esto en FIVEWIN??
Siguiendo el ejemplo de cmsoft, para un caso parecido, cmsoft poneACTION (Venta(::nId - 100, @oBit,@mocupa,@mlibre),creo que es lo que necesito para el caso que me ocupa, pero me da el siguiente error:Variable does not exist: SELFel código es similar al tuyo:for z = 1 to len(adetalle) REDEFINE BTNBMP btn[z] RESOURCE cResource((aDetalle[ z,2],aDetalle[ z,5],aDetalle[z,6])) ID (nIda + z) CENTER PROMPT(aDetalle[ z,1]) OF ODLG UPDATE btn[::nid - 100]:baction := {|| CAMBIOCH(aDetalle[::nid - 100,7],oCheque,btn[::nid - 100],ODLG)} nextGracias
Como Hacer esto en FIVEWIN??
Ya lo solucioné estaba mal btn[::nid - 100]Muchas Gracias a Cmsoft , el programa estaba funcionando pero repitiendo 50 veces cada btnbmp, y me tenía molesto el código así escrito ahora es muchísimo más prolijoOtra vez gracias a todos Uds.Luis
Como Hacer mas altos las pestañas de los TABS
Que tal buen dia a todos. Pues eso, alguien me podria decir como hacer mas alto las pestañas de los TABS Saludos.
Como Hacer mas altos las pestañas de los TABS
javier si usas foolderex REDEFINE FOLDEREX oFld ID 100 OF oDls ; PROMPT " Estado de Cuenta ", " Facturación " ; DIALOGS "SALIDAS1", "SALIDAS2" ; TAB HEIGHT 40 ROUND 5 saludos paco
Como Hacer que el Dialogo en pantalla sea igual al del recur
<!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Se me olvidó la cláusula y por más que busco en el foro, no lo encuentro, Alguién me puede refrescar la memoria????Gracias!!! <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Como Hacer que el Dialogo en pantalla sea igual al del recur
Te refieres a la claúsula RESIZE16 para que se vea más grande ?ACTIVATE DIALOG oDlg RESIZE16ó si lo que quieres es cambiarle el tamaño:ACTIVATE DIALOG oDlg ON INIT oDlg:SetSize( nAncho, nAlto )
Como Hacer que el Dialogo en pantalla sea igual al del recur
Eso mismo!!, Gracias <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Como Hago una impresion via Terminal Services
Hola Amigos de Foro Les pido su cooperacion para terminar un proyecto que tengo dos meses atrasados El proyecto consiste en utilizar el terminal service para accesar el servidor. el problema que tengo es el siguiente: 1. Las impresoras son de matriz con puerto serial, model tm-u950 epson por la naturaleza de la aplicacion no puedo utilizarla de forma generica. 2. Quisiera utilizar la clase tDOSPRN Si algun compañero me puede dar luces se lo agradecere. Saludos, Erick
Como Hago una impresion via Terminal Services
Hola Mira una vez tuve que imprimir en una matriz de punto con un puerto USB, lo que hice fue en el computador compartirla y luego capturarla en net use LPT1: \\computador\impcompartida /persistent:yes ahora si usas la libreria CT.LIB, puedes hacerlo en tu programa [code=fw:1doy5wcs]<div class="fw" id="{CB}" style="font-family: monospace;">        <br /><span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span> NETRMTNAME<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LPT1"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> !NETREDIR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LPT1"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\\</span>computador<span style="color: #000000;">\i</span>mpcompartida"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se puede conectar con la impresora de bodega"</span> + CRLF + CRLF + <span style="color: #ff0000;">"Cancelando impresión hacia la bodega"</span>, <span style="color: #ff0000;">"Usuario"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> .f. <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /> </div>[/code:1doy5wcs]
Como Hago una impresion via Terminal Services
Erick, En los parametros de conexion del cliente de acceso remoto, debes configurar la opcion de enviar tus impresoras, en el servidor remoto, en la opcion del usuario debes configurar que se acepta recibir las impresoras del client, luego instalas por ejemplo en el cliente la epson tm-u950 y la compartes (o el driver de una lx-300, es lo mismo) luego, ya conectado al servidor capturas como te indican en el post anterior: net use LPT1: \\computador\impcompartida /persistent:yes y resuelto el problema, mandas a imprimir a la puerta LPT1. (es lo mismo si la impresora fuera usb) espero te sirva saludos
Como Hago una impresion via Terminal Services
Mira este [url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=15178:34aies02]Post[/url:34aies02]
Como Insertar una imagen como Header en WORD
Hola a Todos: Estoy trabajando en un agregado a una programa de un cliente. Ellos tienen uns imagenes, que colocan como Header (Encabezado) en Word. Ya creo y guardo datos en Word de la siguiente Manera. [code=fw:3ftsi3zh]<div class="fw" id="{CB}" style="font-family: monospace;">oWord := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Word.Application"</span><span style="color: #000000;">&#41;</span><br />oWord:<span style="color: #000000;">Documents</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> && Agregando un nuevo documento<br />oSelection := oWord:<span style="color: #000000;">Selection</span>  && Tomando la seleccion activa<br /><br />WITH OBJECT oSelection<br />            :<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Name</span>=<span style="color: #ff0000;">"Times New Roman"</span><br />            :<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Size</span>=<span style="color: #000000;">12</span><br />            :<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Bold</span>=.T.<br />            :<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Underline</span>=.T.<br />            :<span style="color: #000000;">ParagraphFormat</span>:<span style="color: #000000;">Alignment</span> = <span style="color: #000000;">1</span> &nbsp; &nbsp;&& Centrar<br />            :<span style="color: #000000;">TypeText</span><span style="color: #000000;">&#40;</span>cTituloExa+CRLF<span style="color: #000000;">&#41;</span><br />END WITH<br /><br />oWord:<span style="color: #000000;">ActiveDocument</span>:<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span> oApp:<span style="color: #000000;">Ruta_WORD</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + MOVI->EXAMEN_NUM )<br />oWord:Quit()<br /> </span></div>[/code:3ftsi3zh] Con esto resumo la ayuda que he recibido en el foro, como puedo insertar un Header? Alguien lo ha Hecho?
Como Insertar una imagen como Header en WORD
Try this, I have not tested myself [code=fw:19vuu9cb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> oHead &nbsp;:= oActiveDoc:<span style="color: #000000;">Sections</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Headers</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Header Section</span><br /><span style="color: #00C800;">LOCAL</span> oRange := oHead:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oRange:<span style="color: #000000;">Collapse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Insert point at the beginning of the range</span><br />oRange:<span style="color: #000000;">InlineShapes</span>:<span style="color: #000000;">AddPicture</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>ictures<span style="color: #000000;">\T</span>estPic.JPG"</span> <span style="color: #000000;">&#41;</span></div>[/code:19vuu9cb] Regards [b:19vuu9cb]Anser[/b:19vuu9cb]
Como Instalar un Tipo de Letra
Hola a todos: Desearía saber como se puede instalar desde código una fuente TTF. Un saludo. Carlos.
Como Instalar un Tipo de Letra
Yo uso Inno Setup: Source: e:\fwh1308\Multi\fontes\Code128bWin.ttf; DestDir: {fonts}; FontInstall: Code128bWin; Flags: onlyifdoesntexist Source: e:\fwh1308\Multi\fontes\ean-13.ttf; DestDir: {fonts}; FontInstall: ean-13.ttf; Flags: onlyifdoesntexist en FiveWin crees que podría funcionar así: cOrigem := "c:\test\teste.ttf" cDestino := GetWinDir()+"\fonts\teste.ttf" __CopyFile(cOrigem,cDestino) []´s
Como Instalar un Tipo de Letra
Hola Sistem gracias por tu interes: El Inno Setup es un programa de instalaciones y le pasa lo mismo que al mío que para instalar una fuente es necesario tener permisos de Administrador y por eso no las instala (o creo que es por eso). Ya he realizado eso que me has puesto y tampoco. Lo único que me ha funcionado es : [code=fw:23bme6f4]<div class="fw" id="{CB}" style="font-family: monospace;">    <br />b = Curdrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\c</span>olthop<span style="color: #000000;">\C</span>oltHopFont.ttf"</span><br />a = GetWindowsDirectory<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\f</span>onts<span style="color: #000000;">\C</span>oltHopFont.ttf"</span><br />dato = <span style="color: #ff0000;">"copy "</span> + b + <span style="color: #ff0000;">" "</span> + a + chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span> + chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />m := fcreate <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"letra.bat"</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />fwrite <span style="color: #000000;">&#40;</span>m,dato<span style="color: #000000;">&#41;</span><br />fclose <span style="color: #000000;">&#40;</span>m<span style="color: #000000;">&#41;</span><br />ShellExecute<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #ff0000;">"Open"</span>,<span style="color: #ff0000;">"letra.bat"</span>,<span style="color: #00C800;">NIL</span>,<span style="color: #00C800;">NIL</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:23bme6f4] Con esto creo un archivo LETRA.BAT y lo ejecuto desde dentro de la aplicación pero no copia la fuente pero si ejecuto desde el Explorador de Windows el mismo archivo como Administrador (botón derecho Ejecutar como Administrador) si funciona ya que copia la fuente en la carpeta de Windows. Podría haber una sentencia que ejecute un archivo con permisos de administrador desde código. Un saludo Carlos
Como Instalar un Tipo de Letra
colthop see: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=4&t=21892&p=116733&hilit=AddFontResource#p116733">viewtopic.php?f=4&t=21892&p=116733&hilit=AddFontResource#p116733</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=9789&hilit=AddFontResource">viewtopic.php?f=6&t=9789&hilit=AddFontResource</a><!-- l -->
Como Instalar un Tipo de Letra
Hola de nuevo Sistem: Lo que hace AddFontResource() es permitirte usar una fuente que no esté en Windows\Fonts pero no la instala que es lo que yo quiero. No obstante gracias por tu interés. Carlos
Como Instalar un Tipo de Letra
colthop utilizando VBScript probado con windows8.1 64 bits OK testVBSc.vbs Const FONTS = &H14& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(FONTS) objFolder.CopyHere "e:\siav\ean-13.ttf" fivewin utilizar ShellExecute(.....,"testVBSc.vbs",.......... fonte => <!-- m --><a class="postlink" href="http://blogs.technet.com/b/heyscriptingguy/archive/2008/04/25/how-can-i-install-fonts-using-a-script.aspx">http://blogs.technet.com/b/heyscripting ... cript.aspx</a><!-- m --> []´s
Como Le cambio el titulo a un DIALOG
Como le puedo cambiar el titulo a un Dialog. [code=fw:13k2i46x]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg41 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PROD_PRECIOS"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Registro de Precios Productos"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span>WS_MINIMIZEBOX<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg41 <span style="color: #0000ff;">CENTERED</span> <br />&nbsp; <br />&nbsp;</div>[/code:13k2i46x]
Como Le cambio el titulo a un DIALOG
Siguiendo tu ejemplo [code=fw:3dpls2t5]<div class="fw" id="{CB}" style="font-family: monospace;">cVariable := <span style="color: #ff0000;">"Nuevo título"</span><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg41 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PROD_PRECIOS"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Registro de Precios Productos"</span>;<br />         <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span>WS_MINIMIZEBOX<span style="color: #000000;">&#41;</span><br />  oDlg41:<span style="color: #000000;">cCaption</span> := cVariable<br /><br />  <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg41 <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:3dpls2t5] Luis
Como Linkeo un archivo .Res para crear un .Exe
Buenos Dias Foro... Bueno iniciandome en el mundo de los recursos... Ya cree con Pelles C una caja de dialogo "Prueba.Rc" y lo compile con Porc.Exe me creo "Prueba.Res" .... Ahora como hago para incluirlo en mi ejecutable... Si me pueden ayudar con un pequeño ejemplo... mejor seria .. Desde ya muchas Gracias, Saludos,
Como Linkeo un archivo .Res para crear un .Exe
albeiroval, En pellesC solo con guardar en formato RES es suficiente. Y para agregarlo al proyecto, solo adicionalo como un prg mas.
Como Manejar la mensajeria de Outlook
Perdonen mi ignorancia, alguien me podría dar luces sobre como utilizar la mensajería de outlook desde fw??? <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Como Manejar la mensajeria de Outlook
Angel, En la casilla superior derecha de búsqueda escribe: outlook application y obtendrás un montón de ejemplos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Selecciona los que crean un objeto OLE tipo "Outlook.Application"
Como Minimizar un DIALOG usando recursos (resuelto)
Hola a todos, Como dice el enunciado de la pregunta, como podria MINIMIZAR un DIALOG usando recursos.
Como Minimizar un DIALOG usando recursos (resuelto)
que editor de recursos ocupas?
Como Minimizar un DIALOG usando recursos (resuelto)
Prueba a añadirle el estilo WS_MINIMIZEBOX en el recurso
Como Minimizar un DIALOG usando recursos (resuelto)
Antonio, funciono, muchas gracias. Armando, uso PellesC.
Como Modifico las lineas Horizontales y Verticales en xbrows
Como modificar las lineas horizontales y verticales a mas delgadas, se usa recursos. con la version fwh 8.03 no tenia problema. Ver imagen <!-- m --><a class="postlink" href="http://img521.imageshack.us/img521/8995/vistaok.png">http://img521.imageshack.us/img521/8995/vistaok.png</a><!-- m -->
Como Moficiar los Colores en un LISTBOX.
Hola Amigos: Necesito poder modificar los colores que trae el LISTBOX por cada registro, el que uso tiene como base el AZUL. 1. Se puede Cambiar el color y como 2. El Browse tiene un Filtro? Desde ya muchas gracias. Saludos, Miguel
Como Moficiar los Colores en un LISTBOX.
Creo que esto es lo que necesitas <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=5445&highlight=leandro">http://fivetechsoft.com/forums/viewtopi ... ht=leandro</a><!-- m --> espero te sirva..
Como Moficiar los Colores en un LISTBOX.
Miguel ::: solucionaste el problema de los colores Cuentame
Como Moficiar los Colores en un LISTBOX.
Amigo: No he podido dar con la solucion, Saludos, Miguel [quote="A&C":2f1zlir4]Miguel ::: solucionaste el problema de los colores Cuentame[/quote:2f1zlir4]
Como Moficiar los Colores en un LISTBOX.
Amigo si puedes coloca un pedazo de tu codigo y con gusto de podremos ayudar mas...
Como Moficiar los Colores en un LISTBOX.
Leandro: Gracias por tu atencion, te explico lo que necesito. Tengo una Dbu en la cual tengo definidos los departamentos de un edificio, para lo cual tengo 3 campo que generan un indice: PROYECTO+EDIFICIO+DEPARTAMENTO, como vez tengo que hacer un FILTRO, para que solo me muestre los departamentos que corresponden al edificio, previamente seleecionado. El color del LISTBOX, solo me aparece el registro en azul, necesito cambiar en color base por otro a definir, y si puedo, me gustaria que los departamentos vendidos aparezcan con color rojo y los disponibles con color verde, dentro del mismo LISTBOX. Uso Clipper 5.2e, Fivewin 2.2 y Blinker 5.1 EL codogo es el siguiente: Llamado desde Bitmap, para buscar Dpto. Redefine BitMap Id 25 Adjust Resource "BUSCA2" Of oDlgEdit Cursor oCurDedo On Click (Bus_dep(),oCod_dep1:Refresh()) Function Bus_dep() Local oDlg, oBot1, oBot2, oLbx1, oCurDedo Sele oDbdep DbSetorder(2) Seek Cod_pro1+Cod_edi1 Define Dialog oDlg ResName "BrowseSoloMuestra" Title "Departamentos" REDEFINE LISTBOX oBrw ; FIELDS oDbdep->Cod_dep , subs(Oridep->Det_ori,1,15) ,str(oDbdep->cos_dep),str(oDbdep->Can_dor),str(oDbdep->Can_ban); HEADERS "Código", "Orientación" , "Costo Dpto.", "Dormi","Baños"; ID 100 OF oDlg ; FIELDSIZES 50, 100, 80, 40,40; ALIAS "oDbdep" ; SELECT oDbdep->Cod_pro+oDbdep->Cod_edi FOR Cod_pro1+Cod_edi1 ; UPDATE; On DblClick ( Busca_dep2(),oDlg:End() ) Redefine BitMap Id 201 Adjust Resource "BotonOk" Of oDlg Cursor oCurDedo; On Click (Busca_dep2(),oDlg:End()) Redefine BitMap Id 202 Adjust Resource "BotonCancela" Of oDlg Cursor oCurDedo; On Click (Edi:=.f.,oDlg:End()) ACTIVATE DIALOG oDlg CENTERED Return (Cod_dep1:=oDbdep->Cod_dep) Function Busca_Dep2() Sele oDbde edi:=.t. cod_dep1:=oDbdep->cod_dep Return (Cod_dep1) *** Estoy super complicado, Desde ya muchas gracias por tu atención Miguel Rivera [quote="leandro":1e2uyx13]Amigo si puedes coloca un pedazo de tu codigo y con gusto de podremos ayudar mas...[/quote:1e2uyx13]
Como Moficiar los Colores en un LISTBOX.
Amigo hacen falta estas lineas.... oBrw :NCLRPANE:={||IIF((ORDKEYNO())%2==0,CLR_1,CLR_2)} oBrw :nClrText:={||IIF(ALLTRIM(HFTEE->HTdocext)=="NOSALDO",(RGB(0,0,191)),(" "))} oBrw :nClrForeFocus:={||IIF(ALLTRIM(HFTEE->HTdocext)=="NOSALDO",(RGB(0,0,191)),(RGB(255,255,255)))} creo que con esto solucionas el problema.. [code:3npp3o4y] Define Dialog oDlg ResName "BrowseSoloMuestra" Title "Departamentos" REDEFINE LISTBOX oBrw ; FIELDS oDbdep->Cod_dep , subs&#40;Oridep->Det_ori,1,15&#41; ,str&#40;oDbdep->cos_dep&#41;,str&#40;oDbdep->Can_dor&#41;,str&#40;oDbdep->Can_ban&#41;; HEADERS "Código", "Orientación" , "Costo Dpto&#46;", "Dormi","Baños"; ID 100 OF oDlg ; FIELDSIZES 50, 100, 80, 40,40; ALIAS "oDbdep" ; SELECT oDbdep->Cod_pro+oDbdep->Cod_edi FOR Cod_pro1+Cod_edi1 ; UPDATE; On DblClick &#40; Busca_dep2&#40;&#41;,oDlg&#58;End&#40;&#41; &#41; Redefine BitMap Id 201 Adjust Resource "BotonOk" Of oDlg Cursor oCurDedo; On Click &#40;Busca_dep2&#40;&#41;,oDlg&#58;End&#40;&#41;&#41; Redefine BitMap Id 202 Adjust Resource "BotonCancela" Of oDlg Cursor oCurDedo; On Click &#40;Edi&#58;=&#46;f&#46;,oDlg&#58;End&#40;&#41;&#41; //aqui estan oBrw &#58;NCLRPANE&#58;=&#123;||IIF&#40;&#40;ORDKEYNO&#40;&#41;&#41;%2==0,CLR_1,CLR_2&#41;&#125; oBrw &#58;nClrText&#58;=&#123;||IIF&#40;ALLTRIM&#40;HFTEE->HTdocext&#41;=="NOSALDO",&#40;RGB&#40;0,0,191&#41;&#41;,&#40;" "&#41;&#41;&#125; oBrw &#58;nClrForeFocus&#58;=&#123;||IIF&#40;ALLTRIM&#40;HFTEE->HTdocext&#41;=="NOSALDO",&#40;RGB&#40;0,0,191&#41;&#41;,&#40;RGB&#40;255,255,255&#41;&#41;&#41;&#125; ACTIVATE DIALOG oDlg CENTERED Return &#40;Cod_dep1&#58;=oDbdep->Cod_dep&#41; [/code:3npp3o4y] Reemplaza tu condicion y listo ... Espero te sirva
Como Moficiar los Colores en un LISTBOX.
Leandro: Muchas gracias, lo aplico y te cuento, te agradezco enormente tu enseñanza, Muchos saludos, Miguel [quote="leandro":1wdkrhnk]Amigo hacen falta estas lineas.... oBrw :NCLRPANE:={||IIF((ORDKEYNO())%2==0,CLR_1,CLR_2)} oBrw :nClrText:={||IIF(ALLTRIM(HFTEE->HTdocext)=="NOSALDO",(RGB(0,0,191)),(" "))} oBrw :nClrForeFocus:={||IIF(ALLTRIM(HFTEE->HTdocext)=="NOSALDO",(RGB(0,0,191)),(RGB(255,255,255)))} creo que con esto solucionas el problema.. [code:1wdkrhnk] Define Dialog oDlg ResName "BrowseSoloMuestra" Title "Departamentos" REDEFINE LISTBOX oBrw ; FIELDS oDbdep->Cod_dep , subs&#40;Oridep->Det_ori,1,15&#41; ,str&#40;oDbdep->cos_dep&#41;,str&#40;oDbdep->Can_dor&#41;,str&#40;oDbdep->Can_ban&#41;; HEADERS "Código", "Orientación" , "Costo Dpto&#46;", "Dormi","Baños"; ID 100 OF oDlg ; FIELDSIZES 50, 100, 80, 40,40; ALIAS "oDbdep" ; SELECT oDbdep->Cod_pro+oDbdep->Cod_edi FOR Cod_pro1+Cod_edi1 ; UPDATE; On DblClick &#40; Busca_dep2&#40;&#41;,oDlg&#58;End&#40;&#41; &#41; Redefine BitMap Id 201 Adjust Resource "BotonOk" Of oDlg Cursor oCurDedo; On Click &#40;Busca_dep2&#40;&#41;,oDlg&#58;End&#40;&#41;&#41; Redefine BitMap Id 202 Adjust Resource "BotonCancela" Of oDlg Cursor oCurDedo; On Click &#40;Edi&#58;=&#46;f&#46;,oDlg&#58;End&#40;&#41;&#41; //aqui estan oBrw &#58;NCLRPANE&#58;=&#123;||IIF&#40;&#40;ORDKEYNO&#40;&#41;&#41;%2==0,CLR_1,CLR_2&#41;&#125; oBrw &#58;nClrText&#58;=&#123;||IIF&#40;ALLTRIM&#40;HFTEE->HTdocext&#41;=="NOSALDO",&#40;RGB&#40;0,0,191&#41;&#41;,&#40;" "&#41;&#41;&#125; oBrw &#58;nClrForeFocus&#58;=&#123;||IIF&#40;ALLTRIM&#40;HFTEE->HTdocext&#41;=="NOSALDO",&#40;RGB&#40;0,0,191&#41;&#41;,&#40;RGB&#40;255,255,255&#41;&#41;&#41;&#125; ACTIVATE DIALOG oDlg CENTERED Return &#40;Cod_dep1&#58;=oDbdep->Cod_dep&#41; [/code:1wdkrhnk] Reemplaza tu condicion y listo ... Espero te sirva[/quote:1wdkrhnk]
Como Moficiar los Colores en un LISTBOX.
Leandro: Al hacer la modificacion y compilar me arroja este error: BLINKER : 1115 : RUTINAS.OBJ(RUTINAS) : 'ORDKEYNO' : unresolved external BLINKER : 0 Warning error(s), 1 Fatal error(s) Saludos, Miguel [quote="leandro":10eu3z2a]Amigo hacen falta estas lineas.... oBrw :NCLRPANE:={||IIF((ORDKEYNO())%2==0,CLR_1,CLR_2)} oBrw :nClrText:={||IIF(ALLTRIM(HFTEE->HTdocext)=="NOSALDO",(RGB(0,0,191)),(" "))} oBrw :nClrForeFocus:={||IIF(ALLTRIM(HFTEE->HTdocext)=="NOSALDO",(RGB(0,0,191)),(RGB(255,255,255)))} creo que con esto solucionas el problema.. [code:10eu3z2a] Define Dialog oDlg ResName "BrowseSoloMuestra" Title "Departamentos" REDEFINE LISTBOX oBrw ; FIELDS oDbdep->Cod_dep , subs&#40;Oridep->Det_ori,1,15&#41; ,str&#40;oDbdep->cos_dep&#41;,str&#40;oDbdep->Can_dor&#41;,str&#40;oDbdep->Can_ban&#41;; HEADERS "Código", "Orientación" , "Costo Dpto&#46;", "Dormi","Baños"; ID 100 OF oDlg ; FIELDSIZES 50, 100, 80, 40,40; ALIAS "oDbdep" ; SELECT oDbdep->Cod_pro+oDbdep->Cod_edi FOR Cod_pro1+Cod_edi1 ; UPDATE; On DblClick &#40; Busca_dep2&#40;&#41;,oDlg&#58;End&#40;&#41; &#41; Redefine BitMap Id 201 Adjust Resource "BotonOk" Of oDlg Cursor oCurDedo; On Click &#40;Busca_dep2&#40;&#41;,oDlg&#58;End&#40;&#41;&#41; Redefine BitMap Id 202 Adjust Resource "BotonCancela" Of oDlg Cursor oCurDedo; On Click &#40;Edi&#58;=&#46;f&#46;,oDlg&#58;End&#40;&#41;&#41; //aqui estan oBrw &#58;NCLRPANE&#58;=&#123;||IIF&#40;&#40;ORDKEYNO&#40;&#41;&#41;%2==0,CLR_1,CLR_2&#41;&#125; oBrw &#58;nClrText&#58;=&#123;||IIF&#40;ALLTRIM&#40;HFTEE->HTdocext&#41;=="NOSALDO",&#40;RGB&#40;0,0,191&#41;&#41;,&#40;" "&#41;&#41;&#125; oBrw &#58;nClrForeFocus&#58;=&#123;||IIF&#40;ALLTRIM&#40;HFTEE->HTdocext&#41;=="NOSALDO",&#40;RGB&#40;0,0,191&#41;&#41;,&#40;RGB&#40;255,255,255&#41;&#41;&#41;&#125; ACTIVATE DIALOG oDlg CENTERED Return &#40;Cod_dep1&#58;=oDbdep->Cod_dep&#41; [/code:10eu3z2a] Reemplaza tu condicion y listo ... Espero te sirva[/quote:10eu3z2a]
Como Moficiar los Colores en un LISTBOX.
tu problema es q clipper 5.2 no debe soportar la instruccion ORDKEYNO() por eso te dice q es unresolved external ,, o sea una rutina externa que no existe
Como Moficiar los Colores en un LISTBOX.
Es cierto amigo... Esa funcion la tiene es clipper 5.3, tienes dos opciones.. 1- Cambiar la versión del clipper a 5.3 (si la necesitas con gusto te la hago llegar) 2- La otra cambia ORDKEYNO() por RECNO() para que veas como funciona. Espero te sirva
Como Moficiar los Colores en un LISTBOX.
[quote="leandro":5jpodwij]Es cierto amigo... 1- Cambiar la versión del clipper a 5.3 (si la necesitas con gusto te la hago llegar) [/quote:5jpodwij] Leando: Clipper 5.3 NO ES UN PRODUCTO DE LIBRE DISTRIBUCION, los derechos del producto son ahora de GrafxSoft (<!-- w --><a class="postlink" href="http://www.grafxsoft.com">www.grafxsoft.com</a><!-- w -->) y sigue siendo un producto comercial.
Como Moficiar los Colores en un LISTBOX.
ho ho .... <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> lo tendre en cuenta
Como Moficiar los Colores en un LISTBOX.
Leandro: Muchas gracias por tu ofrecimiento, pero dispongo de Clipper 5.3, solo que no lo usaba, ya que siempre lei que era mas estable la version 5.2e, dela misma forma, te doy las gracias por toda tu ayuda, probare lo que me haz indicado y te cuento. Siempre agradecido, Miguel Rivera [quote="leandro":22pd3xmk]ho ho .... <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> lo tendre en cuenta[/quote:22pd3xmk]
Como Mostrar Parte de un Elemento de Array en Xbrowse ""OK""
Amigos, Muy buenas noches, Como siempre molestando. Tengo un Array con Fechas como elemento, en formato ( 29/11/2019 ). Lo que Necesito es que en Xbrowse, mostrar solo el dia, para este ejemplo ( 29 ) y no encuentro la forma. Muchos Saludos. Antonio. Este es mi codigo: [code=fw:1q1cr79z]<div class="fw" id="{CB}" style="font-family: monospace;"><br />               @ <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw3 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>,<span style="color: #000000;">86</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg3;<br />                        DATASOURCE aAgenda ;<br />                        COLUMNS <span style="color: #000000;">1</span>;<br />                        HEADERS <span style="color: #ff0000;">"FECHA"</span>;<br />                        CELL LINES NOBORDER;                            <br /><br /><br />                        oBrw3:<span style="color: #000000;">lRecordSelector</span>      := .f.<br />                        oBrw3:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_INSET<br />                        oBrw3:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_INSET<br />                            oBrw3:<span style="color: #000000;">nOpacity</span>    := <span style="color: #000000;">230</span><br />                            oBrw3:<span style="color: #000000;">SetStyle</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2018</span><span style="color: #000000;">&#41;</span><br />                            oBrw3:<span style="color: #000000;">nColorPen</span> := CLR_RED<br />                            oBrw3:<span style="color: #000000;">lHScroll</span> := .F. <span style="color: #B900B9;">// Barra Horizontal</span><br />                            oBrw3:<span style="color: #000000;">lVScroll</span> := .F. <span style="color: #B900B9;">// Barra Ventical</span><br />                            <br /><br /><br /><br />                        oBrw3:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:1q1cr79z]
Como Mostrar Parte de un Elemento de Array en Xbrowse ""OK""
[code=fw:2r64kata]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"DD"</span></div>[/code:2r64kata]
Como Mostrar Parte de un Elemento de Array en Xbrowse ""OK""
[quote="nageswaragunupudi":20f76q83][code=fw:20f76q83]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"DD"</span></div>[/code:20f76q83][/quote:20f76q83] Hola Regards Muchas gracias por tu ayuda y siempre estar atento. Funciono Perfecto. Muchos Saludos Antonio.
Como Mudar Base de datos MySQL de LAN hacia Internet ?
Saludos amigos del foro:Hasta aqui he llegado, traslade mi codigo de 16 a 32 Bits, deje un poco las dbf, cdxs para usar el Servidor MySQL.Ya tengo varias aplicaciones corriendo, y no he tenido mayor problema, ahora bien un cliente me solicita, accesar a la base de datos desde cualquier parte de la ciudad, y hacerlo via Internet.Y no se como hacerlo, como mudar mi base de datos, que herramientas de administracion.Al menos se que no debo cambiar codigo, ya que el mismo me sirve.No se que proveedor de hosting y dominios usar, les agradeceria toda la ayuda que puedan dar.Gracias de antemano.Saludos desde Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Como Mudar Base de datos MySQL de LAN hacia Internet ?
Es facil.Primero, Te vas a Dyndns.org y creas una cuenta para que tu ip dinamica tenga un hostSegundo: En tu router abres el puerto 3306 y lo direccionas a la ip donde esta corriendo el mysql.listo, eso es todo amigo
Como Mudar Base de datos MySQL de LAN hacia Internet ?
Pablo muchas gracias.Vamos a hacer algunas pruebas.Saludos desde Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Como Obtener el Contenido de Fila en Xbrowse con Array ""OK""
Hola Amigos Necesito obtener datos de una fila seleccionada en Xbrowse con Array, para enviarlos a una Function. Ejemplo: Selecciona la Fila 3 del Xbrowse y necesito enviar el Contenido de la Columna 1 " Fec.Consulta" a la function para imprimir. Desde ya muchas gracias. Muchos Saludos Antonio Codigo: [code=fw:3bd67k55]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    @ <span style="color: #000000;">20</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw4 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-35</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg4 DATASOURCE aFichas ;     <span style="color: #B900B9;">// aFichas Array con 2 Columnas</span><br />            HEADERS <span style="color: #ff0000;">'Fec.Consulta'</span>,<span style="color: #ff0000;">'Diagnóstico'</span>;<br />            COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>;<br />            PICTURES <span style="color: #ff0000;">'@d'</span>,<span style="color: #ff0000;">'@!'</span>;<br />            CELL LINES AUTOSORT NOBORDER;<br />            oBrw4:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLWIN7<br />            oBrw4:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_INSET<br />            oBrw4:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_INSET<br />            oBrw4:<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">140</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />            oBrw4:<span style="color: #000000;">nOpacity</span>    := <span style="color: #000000;">230</span><br /><br /><br />            oBrw4:<span style="color: #000000;">bClrStd</span>             := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">0</span>,  <span style="color: #000000;">0</span>,  <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">248</span>,<span style="color: #000000;">220</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />            oBrw4:<span style="color: #000000;">bClrSelFocus</span>        := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">255</span>,  <span style="color: #000000;">255</span>,  <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span>, <span style="color: #000000;">178</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />            oBrw4:<span style="color: #000000;">lFooter</span> := .t.<br />            oBrw4:<span style="color: #000000;">lHScroll</span> := .f.<br />             oBrw4:<span style="color: #000000;">lIncrFilter</span>      := .f.<br />             oBrw4:<span style="color: #000000;">lSeekWild</span>        := .F.                   <br />            oBrw4:<span style="color: #000000;">SetStyle</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2018</span><span style="color: #000000;">&#41;</span><br />            oBrw4:<span style="color: #000000;">nColorPen</span> := CLR_RED<br /><br /><br />            oBrw4:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />            @ <span style="color: #000000;">253</span>,<span style="color: #000000;">90</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"FICHA"</span>  <span style="color: #0000ff;">OF</span> oDlg4 <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"#8068"</span>  <span style="color: #0000ff;">FONT</span> oFont11 oGroup FLAT ;<br />                            ToolTip  <span style="color: #ff0000;">"CONSULTA FICHA MEDICA"</span>;<br />                            <span style="color: #0000ff;">ACTION</span> Imprime_Ficha<span style="color: #000000;">&#40;</span>nFicha,Ape,Nom<span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">//   <====== Aqui debo Mandar la aCols[1] Fecha a la Function Imprime()</span><br /><br />                        @ <span style="color: #000000;">253</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"SALIR"</span>  <span style="color: #0000ff;">OF</span> oDlg4 <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"#8101"</span>  <span style="color: #0000ff;">FONT</span> oFont11 oGroup FLAT ;<br />                            ToolTip  <span style="color: #ff0000;">"SALIR DEL SISTEMA"</span>;<br />                            <span style="color: #0000ff;">ACTION</span> oDlg4:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg4 <span style="color: #0000ff;">CENTERED</span><br /><br /> </div>[/code:3bd67k55]
Como Obtener el Contenido de Fila en Xbrowse con Array ""OK""
Antonio intenta con: [code=fw:21b4e4s8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aFichas<span style="color: #000000;">&#91;</span> oBrw4:<span style="color: #000000;">nArrayAt</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp;</div>[/code:21b4e4s8]
Como Obtener el Contenido de Fila en Xbrowse con Array ""OK""
Hola Adhemar C Muchas gracias por tu ayuda, funciono PERFECTO. Muchos saludos Antonio
Como Obtener el Contenido de Fila en Xbrowse con Array ""OK""
[code=fw:3l5eaffe]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp;</div>[/code:3l5eaffe]
Como Obtener el Contenido de Fila en Xbrowse con Array ""OK""
Hola CNavarro Muchas gracias por tu ayuda, ambas soluciones funcionan muy bien. Muchos Saludos. Antonio
Como Ordenar un Array
Un Cordial saludo a Todos. Ya estuve buscando como hacerle pero no encuentro no entiendo Les pongo algo de mi codigo por si alguien me echa la mano [code=fw:un2s1y44]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    aDViaje := ASort<span style="color: #000000;">&#40;</span>aDViaje,,,<span style="color: #000000;">&#123;</span>|x,y| x<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><y<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />    REPORT oReporte <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Listado de Viajes  del :"</span>+Dtoc<span style="color: #000000;">&#40;</span>oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" Al "</span>+Dtoc<span style="color: #000000;">&#40;</span>oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Center</span>;<br />                        Header AllTrim<span style="color: #000000;">&#40;</span>EMPRESA->EMPRESA<span style="color: #000000;">&#41;</span>,AllTrim<span style="color: #000000;">&#40;</span>EMPRESA->CALLE<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">", COL. "</span>+AllTrim<span style="color: #000000;">&#40;</span>EMPRESA->COLONIA<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+AllTrim<span style="color: #000000;">&#40;</span>EMPRESA->LOCAL<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"                                CP.:"</span>+AllTrim<span style="color: #000000;">&#40;</span>EMPRESA->CP<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Center</span> ;<br />                        Footer <span style="color: #ff0000;">"Pagina # "</span>+str<span style="color: #000000;">&#40;</span>oReporte:<span style="color: #000000;">nPage</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" -- "</span>+<span style="color: #ff0000;">"Fecha :"</span>+Dtoc<span style="color: #000000;">&#40;</span>Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #0000ff;">Font</span> aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">37</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>,aFontPrn<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span>;<br />                    Caption <span style="color: #ff0000;">"Reportes Del Sistema de Administracion"</span> PREVIEW<br />                Column <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Nota"</span>                 <span style="color: #00C800;">Data</span> aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span><br />                Column <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Fecha"</span>                <span style="color: #00C800;">Data</span> aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span><br />                Column <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Empleado"</span>             <span style="color: #00C800;">Data</span> aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span><br />                Column <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Imprte"</span>               <span style="color: #00C800;">Data</span> aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999,999.99"</span> TOTAL<br />                Column <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Destino"</span>              <span style="color: #00C800;">Data</span> aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span><br />                Column <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Tiempo"</span>               <span style="color: #00C800;">Data</span> aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span> <br />                GROUP <span style="color: #0000ff;">ON</span> <span style="color: #000000;">&#123;</span>|| aDViaje<span style="color: #000000;">&#91;</span>nCont,<span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#125;</span><br />    ENDREPORT<br />    oReporte:<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">&#123;</span> || nCont++  <span style="color: #000000;">&#125;</span>   <br />    oReporte:<span style="color: #000000;">lAutoLand</span> := .T.<br />    <span style="color: #0000ff;">Activate</span> Report oReporte <span style="color: #00C800;">WHILE</span> nCont <= LEN<span style="color: #000000;">&#40;</span> aDViaje <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:un2s1y44] * Creo el Array y lo ordeno por el "EMPLEADO" [3] * Pero ahora tengo la necesidad tambien de ordenarlo dentro de Empleado por "FECHA" [2] Saludos...
Como Ordenar un Array
Casi lo tienes. Sólo cambia la 'expresión ordenadora' por esta otra: [code=fw:2mada9j7]<div class="fw" id="{CB}" style="font-family: monospace;">x<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>+ DToS<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> < y<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>+ DToS<span style="color: #000000;">&#40;</span>y<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span></div>[/code:2mada9j7]
Como Ordenar un Array
Gracias mi estimado Amigo Funcionó como yo quería.
Como Poner cToolTip / EDIT_GET_BUTTON
Necesito saber si se puede poner un cToolTip en un EDIT_GET_BUTTON Saludos
Como Poner cToolTip / EDIT_GET_BUTTON
Hola, Supongo que te refieres a la clase BTNGET de Ricardo Ramirez. Si es así, yo la uso y pudiera ayudarte. Por ej. [code=fw:pc338bwm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">redefine</span> btnget oUbicado <span style="color: #0000ff;">var</span> cUbicado <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4024</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />oUbicado:<span style="color: #000000;">cToolTip</span>:=<span style="color: #ff0000;">"Ingresar UBICACION DEL ARTEFACTO para buscar"</span></div>[/code:pc338bwm] Saludos Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Como Poner cToolTip / EDIT_GET_BUTTON
Rolando, El amigo josé no se ha explicado, se refiere a colocarle un tooltip al get del xbrowse. y se hace asi: [code=fw:ptk7n1ua]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oEditGet</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Mi tooltip"</span><br /><br /><span style="color: #B900B9;">// Nota: "n" es el numero de columna que le asignaremos el tooltip</span></div>[/code:ptk7n1ua] Servido mi estimado josé y creo que debemos ser mas explicitos para preguntar porque enredamos a los posibles colegas que nos puedan ayudar. Sin animo de polemizar.
Como Poner cToolTip / EDIT_GET_BUTTON
[quote="fespinoza":2hpky623]William Intento tu código con FWH907 y me sale el siguiente mensaje de error: [i:2hpky623]Descripción de error: Error BASE/1005 Class: 'NIL' has no property: CTOOLTIP[/i:2hpky623] ¿Desde que versión funcionara este código? Saludos Fernando Espinoza[/quote:2hpky623] Si revisas el xbrowse.prg encontraras la data oEditget que es donde se guarda el GET al editar. Haré pruebas para saber si el codigo funciona como se requiere.
Como Poner cToolTip / EDIT_GET_BUTTON
William Intento tu código con FWH907 y me sale el siguiente mensaje de error: [i:1jzj7l4d]Descripción de error: Error BASE/1005 Class: 'NIL' has no property: CTOOLTIP[/i:1jzj7l4d] ¿Desde que versión funcionara este código? Saludos Fernando Espinoza
Como Poner cToolTip / EDIT_GET_BUTTON
fespinoza, José, Esta sería una posible modificación para aceptar tooltip en los GETS En la clase TXBrwColumn [code=fw:17r5joi6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DATA</span> cTooltipget <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span></div>[/code:17r5joi6] En el metodo EDIT de la clase TXBrwColumn [code=FW:17r5joi6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Edit</span><span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br />   .............<br />   .............<br />   ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lEditMode</span> := .T.<br /><br />   <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cToolTipGet</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oEditGet</span>:<span style="color: #000000;">cToolTip</span> := cToolTipGet<br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBtnElip</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   .............<br />   .............</div>[/code:17r5joi6] Con eso aceptaria los tooltips en los GETS esperemos les sirva
Como Poner cToolTip / EDIT_GET_BUTTON
SE me olvidó, Adicionar el xbrowse.prg modificado como un prg mas de su proyecto.
Como Poner cToolTip / EDIT_GET_BUTTON
William Gracias por el detalle, voy a probar y confirmo como funciona. Saludos Fernando Espinoza
Como Poner cToolTip / EDIT_GET_BUTTON
William Una vez corregido el xBrowse y agregado a mi programa; sigue saliendo el mismo error. Saludos
Como Poner cToolTip / EDIT_GET_BUTTON
fespinoza, Tienes mucha razón, la cuestion es que se usaria de la siguiente manera: [code=fw:2h7m1ufs]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTipGet</span> := <span style="color: #ff0000;">"Mi tooltip"</span><br /><br /><span style="color: #B900B9;">// Nota: "n" es el numero de columna que le asignaremos el tooltip</span></div>[/code:2h7m1ufs]
Como Poner cToolTip / EDIT_GET_BUTTON
Saludos intenta crear una data para la clase TXBrwColumn dentro de xbrowse.prg [code=fw:2ebq5cml]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DATA</span> bOnPreEdit</div>[/code:2ebq5cml] y justo antes de salir del metodo Edit [code=fw:2ebq5cml]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Edit</span><span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br />....<br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bOnPreEdit</span> != <span style="color: #00C800;">nil</span><br />      Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bOnPreEdit</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> .t.<br /> </div>[/code:2ebq5cml] asi tendras no solo acceso al tooltip sino que hasta todas las datas de la clase xbrowse y cambiar los datos de forma dinamica, es decir, amplias la abertura del compas a un acceso ilimitado de la clase en este caso Self es el objeto columna esta seria una simple manera de usarse para tus propositos, el resto que puedas hacer es a tu criterio [code=fw:2ebq5cml]<div class="fw" id="{CB}" style="font-family: monospace;">   aeval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span>| o | o:<span style="color: #000000;">nEditType</span> := <span style="color: #000000;">1</span>, ;<br />                             o:<span style="color: #000000;">bOnPreEdit</span> := <span style="color: #000000;">&#123;</span>| oCol | oCol:<span style="color: #000000;">oEditGet</span>:<span style="color: #000000;">cToolTip</span> := cValToChar<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:2ebq5cml]
Como Poner cToolTip / EDIT_GET_BUTTON
Corrección.... En la clase TXBrwColumn [code=fw:d781u4bt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DATA</span> cTooltipget <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span></div>[/code:d781u4bt] En el metodo EDIT de la clase TXBrwColumn [code=FW:d781u4bt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Edit</span><span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br />   .............<br />   .............<br />   ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lEditMode</span> := .T.<br /><br />   <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cToolTipGet</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #B900B9;">// cTooltip debe ser con los 2 dobles puntos</span><br />      ::<span style="color: #000000;">oEditGet</span>:<span style="color: #000000;">cToolTip</span> := ::<span style="color: #000000;">cToolTipGet</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBtnElip</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   .............<br />   .............</div>[/code:d781u4bt]
Como Poner cToolTip / EDIT_GET_BUTTON
Ahora bien Para los tooltip por celdas y no por el get prueba ver este post [url:3p04fnb7]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=70273#p70273[/url:3p04fnb7] el ejemplo lo encuentars aqui para descargarlo y el codigo fuente [url:3p04fnb7]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=72563#p72563[/url:3p04fnb7]
Como Poner cToolTip / EDIT_GET_BUTTON
William El asunto mejora, pero todavía no llega le resultado deseado. ahora no s emuestra ningún mensaje de error; pero al momento de la ejecución del programa y pasar el raton sobre el boton no aparece el Tooltip. Saludos Fernando Espinoza
Como Poner cToolTip / EDIT_GET_BUTTON
Fernando... [quote="fespinoza":2casmeev]El asunto mejora, pero todavía no llega le resultado deseado. ahora no s emuestra ningún mensaje de error; pero al momento de la ejecución del programa y pasar el raton sobre el boton no aparece el Tooltip.[/quote:2casmeev] esto no sucedera de esa forma, para poder desplegar el tooltip necesitas tener activo el GET y para qu eel get se active, necesitas entrar en modo edicion, prueba editar la celda y te mostrara el tooltip El boton que se pinta en una celda no es un control real, es un control virtual el cual no procesa mensajes, por eso no podras desplegar un tooltip asi nada mas presumiendo esa situacio n te recomende este post (fue unos aportes que hice para lo que quires) [url:2casmeev]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=105645#p105645[/url:2casmeev]
Como Poner cToolTip / EDIT_GET_BUTTON
Daniel OK, esta clara la explicación, voy a probar tu solución. Gracias Saludos
Como Poner cToolTip / EDIT_GET_BUTTON
[quote="Daniel Garcia-Gil":naekd9ck]Fernando... [quote="fespinoza":naekd9ck]El asunto mejora, pero todavía no llega le resultado deseado. ahora no s emuestra ningún mensaje de error; pero al momento de la ejecución del programa y pasar el raton sobre el boton no aparece el Tooltip.[/quote:naekd9ck] esto no sucedera de esa forma, para poder desplegar el tooltip necesitas tener activo el GET y para qu eel get se active, necesitas entrar en modo edicion, prueba editar la celda y te mostrara el tooltip El boton que se pinta en una celda no es un control real, es un control virtual el cual no procesa mensajes, por eso no podras desplegar un tooltip asi nada mas presumiendo esa situacio n te recomende este post (fue unos aportes que hice para lo que quires) [url:naekd9ck]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=105645#p105645[/url:naekd9ck][/quote:naekd9ck] Mucha razon de tu parte maestro, efectivamente al entrar a edicion es cuando muestra y de hecho toma todas las propiedades del GET, mas no al "visualizar" en el browse.
Como Poner cToolTip / EDIT_GET_BUTTON
Fernando... como te fue los Tooltip, yo aun no logro que me salga, la idea es de al pasar el mouse por la celda muestre el tooltip sin que el get este editado. seguire probando.. saludos
Como Poner 2 Lineas de Totales en Xbrowse
Amigos. Muy buenas Noches. Como siempre molestando. Necesito saber como se pueden Poner 2 o 3 Lineas de Totales en el Footer de Xbrowse ? He buscado mucho en el Foro, pero no he encontrado la forma. Muchos Saludos Antonio.
Como Poner 2 Lineas de Totales en Xbrowse
Hola. Intenta asi: [code=fw:dk913bi9]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; oBrw:<span style="color: #000000;">lFooter</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .t. &nbsp;<span style="color: #B900B9;">//Que tendrá footer </span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nFooterLines</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">3</span> &nbsp; &nbsp;<span style="color: #B900B9;">//Lineas del footer </span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nFooterHeight</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">46</span> &nbsp; <span style="color: #B900B9;">//Altura del &nbsp;Footer</span><br /><br />&nbsp; &nbsp;oCol = oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//GTOTAL</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bEditValue</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->SaldPrinc + <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->SaldIntCo + <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->SaldDesliz &nbsp;+ <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->SaldOtros<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cEditPicture</span> = <span style="color: #ff0000;">"9,999,999,999.99"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nDataStrAlign</span> := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> = <span style="color: #ff0000;">"SALDO"</span>+CRLF+<span style="color: #ff0000;">"TOTAL"</span> <br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nWidth</span> = <span style="color: #000000;">110</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//El ancho de la col es importante</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nEditType</span> = <span style="color: #000000;">0</span> &nbsp; <span style="color: #B900B9;">//no editable</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bFooter</span> &nbsp;= &nbsp;<span style="color: #000000;">&#123;</span>||TRANSFORM<span style="color: #000000;">&#40;</span>nTotPrinc+nTotIntCo+nTotDesliz+nTotOtros,<span style="color: #ff0000;">"99,999,999,999.99"</span><span style="color: #000000;">&#41;</span> +CRLF+ TRANSFORM<span style="color: #000000;">&#40;</span>nNoVencido,<span style="color: #ff0000;">"9,999,999,999.99"</span><span style="color: #000000;">&#41;</span> +CRLF+ TRANSFORM<span style="color: #000000;">&#40;</span>nVencido,<span style="color: #ff0000;">"9,999,999,999.99"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nFootStrAlign</span> := <span style="color: #000000;">1</span><br />&nbsp;</div>[/code:dk913bi9] Saludos.
Como Poner 2 Lineas de Totales en Xbrowse
Hola Francisco Muy buen dia. Muchas gracias por tu tiempo y por responder. He probado tu sugerencia y Funciona muy Bien. Muchos saludos.
Como Puedo sumar 20 minutos a time() eJ:time()+20
Estimados Colegas Como puedo sumar 20 minutos a time(), si alguien me puede orientar desde ya muchisimas gracias Dante <!-- e --><a href="mailto:devwin2004@yahoo.com.ar">devwin2004@yahoo.com.ar</a><!-- e -->
Como Puedo sumar 20 minutos a time() eJ:time()+20
DevWin2004: (Que nombre tan raro <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ) Con la función Tine() no es posible hacer operaciones pues te devuelve una cadena, te sugiero uses la función SECONDS() que te devuelve el número de segundos que han transcurrido desde la media noche, ejemplo: ? TIME() // 10:00:00 ? SECONDS() // 36000.00 (10horas * 60 Mins cada Hora * 60 segundos) Entonces; nSegundos := SECONDS() + 1200 (20mins * 60 segs cada minuto) Solo te faltará convertir nSegundos en Horas, Minutos y segundos que no debe presentarte mayor problema. Saludos, Armando
Como Recompilar una LIB de FWH
he modificado la clase TWBROWSE pero no se como hacer para agregarlol a la LIB de FWH correspondiente, Alguien me puede indicar los pasos a seguir? Se Agradece Jaime
Como Recompilar una LIB de FWH
Jaime, Compila el PRG y añade el OBJ resultante a tu aplicación como si fuese uno de los módulos de tu aplicación. No hace falta que lo reemplaces en la librería
Como Recompilar una LIB de FWH
Gracias Antonio, Funciono de Maravillas <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Jaime
Como Refazer o Preview
Olá Pessoal Estou montando uma rotina para poder selecionar a impressora de dentro do preview ja aberto De jato para jato ou de jato p. Laser ja esta funcionando o problema é q. qdo se muda de uma jato ou laser para uma matricial tem q. ser refeito o preview devido a diferenca de dpi das matriciais para as jato ou laser Alguem sabe como resolver ? um abraço Marcelo Ferro Fwh7.04/xHarbour 99.71/SqlLib /xMate/WS
Como Refazer o Preview
Marcelo, El preview usa unos ficheros metafiles que estan construidos en base a un hDC (device context) de la impresora que se va a usar. Si cambias de impresora entonces tendrías que volver a crear los ficheros metafiles, algo que se podría hacer, pero que no es sencillo.
Como Refazer o Preview
[quote="Antonio Linares":3mte1eix]Marcelo, El preview usa unos ficheros metafiles que estan construidos en base a un hDC (device context) de la impresora que se va a usar. Si cambias de impresora entonces tendrías que volver a crear los ficheros metafiles, algo que se podría hacer, pero que no es sencillo.[/quote:3mte1eix] Olá Linhares é um prazer teclar com vc Passei esta pergunta ao Gilmer aqui da Fw Brasil, pos tenho extrema nesecissade de resolver isso para um determinado cliente meu, e temos uma lib maravilhosa aqui q. faz +- isso com algumas vantagens de tbem gerar em pdf , mas eu tento não utilizar libs q. eu nao tenha o fonte, vc me entende ? Seria possível vc me ajudar com isso ? desde já um abraço
Como Refazer o Preview
nada ?
Como Refazer o Preview
Marcelo, Please review the enhanced metafiles Windows API documentation: A developer creates an enhanced metafile by using the CreateEnhMetaFile function and supplying the appropriate arguments. The Win32 API uses these arguments to maintain picture dimensions, to determine whether the metafile should be stored on a disk or in memory, and so on. To maintain picture dimensions across output devices, the Win32 API requires the resolution of the reference device. This reference device is the device on which the picture first appeared, and the reference DC is the DC associated with the reference device. When calling the CreateEnhMetaFile function, the application must supply a handle that identifies this DC. The application can get this handle by calling the GetDC or CreateDC function or specify NULL as the handle to use the current display device for the reference device. Most applications store pictures permanently and therefore create an enhanced metafile that is stored on a disk; however, there are some instances when this is not necessary. For example, a word-processing application that provides chart-drawing capabilities could store a user-defined chart in memory as an enhanced metafile and then copy the enhanced metafile bits from memory into the user's document file. An application that requires a metafile that is stored permanently on a disk must supply the filename when it calls the CreateEnhMetaFile function. If the developer does not supply a filename, Windows automatically treats the metafile as a temporary file and stores it in memory. The developer can add an optional text description to a metafile containing information about the picture and the author. An application can display these strings in the File Open dialog box to provide the user with information about metafile content that will help in selecting the appropriate file. If an application includes the text description, the application must supply a pointer to the string when it calls the CreateEnhMetaFile function. When the CreateEnhMetaFile function is successful, it returns a handle that identifies a special metafile DC. A metafile DC is unique in that it is associated with a file rather than with an output device. When Windows processes a GDI function that received a handle to a metafile DC, it converts the GDI function into an enhanced-metafile record and appends the record to the end of the enhanced metafile. After a picture is complete and the last record is appended to the enhanced metafile, the application can close the file by calling the CloseEnhMetaFile function. This function closes and deletes the special metafile DC and returns a handle identifying the enhanced metafile. The application can use this handle to accomplish the following tasks. · Display the picture stored in the enhanced metafile. · Create copies of the enhanced metafile. · Enumerate, edit, or copy the individual records in the enhanced metafile. · Retrieve the optional description that is stored in the enhanced metafile. · Retrieve a copy of the enhanced-metafile header. · Retrieve a binary version of the enhanced metafile. · Enumerate the colors in the optional palette. · Convert an enhanced-format metafile into a Windows-format metafile. Some applications create temporary backup (or duplicate) copies of a file before enabling the user to alter the original. An application can create a backup copy of an enhanced metafile by calling the CopyEnhMetaFile function, supplying a handle that identifies the enhanced metafile, and supplying a pointer to the name of the new file. Most drawing, illustration, and computer-aided design (CAD) applications require a means of editing a picture stored in an enhanced metafile. Although editing an enhanced metafile is a complex task, a developer can use the EnumEnhMetaFile function in combination with other Win32 functions to provide this capability in your application. The EnumEnhMetaFile function and its associated callback function enable the application to process individual records in an enhanced metafile. Some applications display the text description of an enhanced metafile with the corresponding filename in the File Open dialog box. An application can determine whether this string exists in an enhanced metafile by retrieving the metafile header and examining one of its members. The GetEnhMetaFileHeader function can retrieve the metafile header. If the string exists, the application retrieves it by calling the GetEnhMetaFileDescription function. Some applications retrieve the contents of a metafile by calling the GetEnhMetaFileBits function; however, before retrieving the contents, the application must specify the size of the file. To get the size, the application can use the GetEnhMetaFileHeader function and examine the appropriate member. To achieve consistent colors when a picture is displayed on various output devices, an application can call the CreatePalette function and store a logical palette in an enhanced metafile. Other applications that display the picture stored in the enhanced metafile retrieve this palette and call the RealizePalette function before displaying the picture. To determine whether a palette is stored in an enhanced metafile, an application can retrieve the metafile header and examine the appropriate member. If a palette exists, the application can call the GetEnhMetaFilePaletteEntries function to retrieve the logical palette.
Como Saber si Texto RICHEDIT5 Cambio
Hola Amigos. Como puedo saber si un texto RICHEDIT5, ha sido modificado, si esto ocurre lo grabo? Muchos saludos Antonio [code=fw:82tcaw08]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; @ &nbsp;<span style="color: #000000;">189</span>,<span style="color: #000000;">420</span> RICHEDIT5 oRich_Adm <span style="color: #0000ff;">VAR</span> Obs_Gra1 &nbsp;<span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">70</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont2 &nbsp; <span style="color: #B900B9;">// Texto RTF</span><br /><br />&nbsp;</div>[/code:82tcaw08]
Como Saber si Texto RICHEDIT5 Cambio
Puedes usar, o bien el método [code=fw:1mhlm9fr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? oRich:<span style="color: #000000;">IsModify</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1mhlm9fr] o crear tu propia metodología Puedes usar una variable inicializada a .F., y utilizar la DATA bChange para cambiarle su valor [code=fw:1mhlm9fr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> lModify &nbsp; := .F.<br />.../...<br /><br />oRich:<span style="color: #000000;">bChange</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || lModify := .T. <span style="color: #000000;">&#125;</span><br />.../...<br />&nbsp;</div>[/code:1mhlm9fr]
Como Saber si Texto RICHEDIT5 Cambio
Buen dia Cristobal. Muchas gracias, muy agradecido por su ayuda y siempre colaboracion. Lo aplicare a mi codigo. Muchos Saludos Antonio.
Como Saber si hay abierta una base de datos
Hola a todos: Tengo un programa en red y hay una opción donde desearía saber si algun usuario de la red tiene abierta una base de datos para advertirlo. ¿Existe alguna forma? Un saludo Gracias Carlos
Como Saber si hay abierta una base de datos
Hola, Yo uso esta manera Carlos. IF Select( "<su_dbf>" ) == 0 ? "No está abierto" ELSE ? "Está Abierto" ENDIF
Como Saber si hay abierta una base de datos
Hola Aferra: Siempre me dice que no esta abierto. Un saludo y gracias. Carlos
Como Saber si hay abierta una base de datos
Carlos Trata de abrirla en modo exclusivo, si es que puedes quiere decir que nadie la esta usando. Saludos
Como Saber si hay abierta una base de datos
Hola, tambien puedes probar con: if (cAlias)->(USED()) MsgInfo("En uso") else MsgInfo("No en uso") endif
Como Saber si hay abierta una base de datos
Hola Carlos. Hago la apertura y funciona de esta manera. cDriver := "DBFCDX" lShared := .T. lReadOnly := .F. cFile := <su_DBF> IF Select( cFile ) > 0 dbSelectArea( cFile ) ELSE dbUseArea( .T., cDriver, cFile, cFile, lShared, lReadOnly ) IF NetErr() ... ... etcétera ENDIF ENDIF RETURN .T.
Como Saber si hay abierta una base de datos
Hola y gracias a todos por vuestras indicaciones. Al final lo he solucionado como dice Alejandro, tratando de abrirla en modo Exclusivo y si da error comentarlo y no seguir. Un saludo Carlos