topic
stringlengths
1
63
text
stringlengths
1
577k
problema de pintado del xBrowse
With the change, the painting problem is transferred to the bottom of the xBrowse.
problema en ::Refresh() de xbrowse con ADS
Hola amigos del foro.Estoy empezando a usar xBrowse, FWH 8.02 y RDDADS y cuando intento cambiar el ancho de una columma, da el siguiente error: [b:pj8ny7go]Error BASE/1004 Class: 'NIL' has no exported method: NLEN[/b:pj8ny7go]El problema esta en el Metodo Refresh(); hay que cambiar la siguiente instruccion: [code:pj8ny7go]::nRowSel = Min( ::nRowSel, Eval( ::bKeyNo ) )[/code:pj8ny7go] por : [code:pj8ny7go]::nRowSel = Min( ::nRowSel, Eval( ::bKeyNo,,Self ) )[/code:pj8ny7go]En otros metodos se puede ver el codigo [b:pj8ny7go]Eval( ::bKeyNo,,Self )[/b:pj8ny7go]NOTA: El problema tb ocurre en el demo Testxbrw.prgMe imagino que en las versiones mayores a FWH 8.02 ya se debe haber corregido el problema.
problema en RED Local
Hola prueba en la misma maquina abrir 2 veces el programa, a ver si te sale el error
problema en RED Local
mgsoft: Tengo instalado el mismo sistema que tú pero no utilizo la clausula NEW en mis PRG y me funciona perfectamente. Yo incorporo ADS y es fundamental incluir el comando "SET MULTIPLE ON" en tu PRG principal para que todos los terminales puedan acceder simultaneamente a cualquier DBF. Un saludo. LORENZO
problema en RED Local
Hola: Tengo un XP Home con una carpeta compartida con escritura que hace de Servidor. Luego en la LAN únicamente hay un Windows 7 que hace de cliente. El problema es que cuando ambos PCS están accediendo a la vez a los datos, da un error DBFCDX/1001 Error de apertura CLIENTES.DBF. Sin embargo, si el programa no se ejecuta en el Servidor XP, y el cliente Windows 7 accede únicamente él al XP todo va bien. Siempre abro las bases de datos SHARED NEW. ¿Sabéis que sucede?. Muchas gracias. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
problema en el ejemplo de make ?
me he decidido a usar el make de microsoft , y para empezar e ejecutado el ejemplo que se adjunta en la distribucion . No lo he mirado mucho pero : el resultado es este [code:dxnxc6o5] C&#58;\FWPPC\makes\fwcemake>c&#58;\vce\bin\nmake -ftest&#46;mak Microsoft &#40;R&#41; Program Maintenance Utility Version 6&#46;00&#46;8168&#46;0 Copyright &#40;C&#41; Microsoft Corp 1988-1998&#46; All rights reserved&#46; echo test&#46;obj one&#46;obj > msvc&#46;tmp echo c&#58;\fwppc\lib\FiveCE&#46;lib c&#58;\fwppc\lib\FiveCEC&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\rtl&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\vm&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\gtwin&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\lang&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\macro&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\rdd&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\dbfntx&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\dbfcdx&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\dbffpt&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\hbsix&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\debug&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\common&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\pp&#46;lib >> msvc&#46;tmp echo c&#58;\harbour_ce\lib\vc\codepage&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\coredll&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\corelibc&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\aygshell&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\ws2&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\mfcce400&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\ole32&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\ceshell&#46;lib >> msvc&#46;tmp echo c&#58;\vce\lib\arm\commctrl&#46;lib >> msvc&#46;tmp IF EXIST test&#46;res echo test&#46;res >> msvc&#46;tmp SET LIB=c&#58;\vce\lib c&#58;\vce\bin\link @msvc&#46;tmp /nologo /SUBSYSTEM&#58;WINDOWSCE,4&#46;20 /MACHINE&#58;ARM > link&#46;log NMAKE &#58; fatal error U1077&#58; 'c&#58;\vce\bin\link' &#58; return code '0x49d' Stop&#46; C&#58;\FWPPC\makes\fwcemake> [/code:dxnxc6o5] y me dice que leches ....... Saludso.
problema en el ejemplo de make ?
Jose Luis, Se debe a que el enlazador (link.exe) no encuentra un determinado archivo. Mira en link.log y verás cual es.
problema en el ejemplo de make ?
encontrado <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> LINK :fatal error LNK1181: cannot open input file 'c:\harbour_ce\lib\vc\rtl.lib' el problema esta en el mak [code:3tycpjsy] &#46;&#46;&#46; &#46;&#46;&#46;&#46; echo $&#40;HBDIR&#41;\lib\vc\rtl&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\vc\vm&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\vc\gtwin&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\vc\lang&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\vc\macro&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\vc\rdd&#46;lib >> msvc&#46;tmp &#46;&#46;&#46;&#46; [/code:3tycpjsy] si se tiene instalado el paquete por defecto ( la distribucion de fwpcc ) deberia ser [code:3tycpjsy] &#46;&#46;&#46;&#46; echo $&#40;HBDIR&#41;\lib\rtl&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\vm&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\gtwin&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\lang&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\macro&#46;lib >> msvc&#46;tmp echo $&#40;HBDIR&#41;\lib\rdd&#46;lib >> msvc&#46;tmp &#46;&#46;&#46;&#46; [/code:3tycpjsy] Creo que se debería corregir en la distribucion ... [/code]
problema en el ejemplo de make ?
Jose Luis, Corregido. Gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
problema en red local
Hola amigos: Tengo la siguiente instalación en una LAN: Servidor Windows XP XP - 5.1, Build 2600 Service Pack 3, que aloja los datos. Cliente Windows 7 Home Premium El problema es que no pueden estar los dos PCS con el programa a la vez. Si abro ambos, me dice: Error BASE/1002 No existe el alias: EMISOR El código es: SET EXCLUSIVE OFF SET AUTOPEN ON USE (EMISOR) NEW ALIAS EMISOR -> en esta línea da el error EMISOR->(OrdSetFocus("EMISOR1")) Sin embargo, si sólo abro un PC funciona OK. Por favor, ¿qué sucede?. Muchas gracias.
problema en red local
Al abrir la tabla debes aumentar SHARED para que quede compartida
problema en red local
Hola, ¿Y eso no lo hace SET EXCLUSIVE OFF? [quote:2a12f4yj]SET EXCLUSIVE Sets the global EXCLUSIVE open mode for databases. Syntax SET EXCLUSIVE ON | off | ( <lOnOff> ) Arguments ON | off | ( <lOnOff> ) This option toggles whether databases are opened in EXCLUSIVE mode or not. The default is ON or .T. (true), i.e. all databases opened with the USE command are exclusively accessible for the xHarbour application only. To change the setting use OFF or .F. (false) as parameter. The parameter can also be specified as a logical expression enclosed in parentheses. Description The SET EXCLUSIVE command changes the global setting for the default open mode with the USE command for databases. The default setting is ON. This setting is valid for all work areas and can be overriden for inividual work areas by specifying the option EXCLUSIVE or SHARED with the USE command. Opening a database in EXCLUSIVE mode reserves access to this database to the xHarbour application that opened the database. Other applications in a network environment are denied access as long as the database is open for exclusive use. It is, therefore, recommended to use databases in SHARED mode, unless a database operation must be performed that requires exclusive access. This is necessary for PACK, REINDEX and ZAP operations. Databases opened for exclusive use do not require record or file locks for changing data. This is required when a database is open in SHARED mode. [/quote:2a12f4yj]
problema en red local
Lucas: No, eso no te hace todo el trabajo. SET EXCLUSIVE [b:1ixlr7pq]ON[/b:1ixlr7pq] hace que todo sea abierto en modo exlusivo. SET EXCLUSIVE [b:1ixlr7pq]OFF[/b:1ixlr7pq] no es lo contrario. Solo estas indicando que [b:1ixlr7pq]NO todo[/b:1ixlr7pq] sera exlusivo. Tienes que especificar en cada instrucion USE la palabra SHARED si la quieres compartida. Atentamente, Rolando Cochabamba - Bolivia.
problema en red local
[quote="RSalazarU":2svnpd0t]Lucas: No, eso no te hace todo el trabajo. SET EXCLUSIVE [b:2svnpd0t]ON[/b:2svnpd0t] hace que todo sea abierto en modo exlusivo. SET EXCLUSIVE [b:2svnpd0t]OFF[/b:2svnpd0t] no es lo contrario. Solo estas indicando que [b:2svnpd0t]NO todo[/b:2svnpd0t] sera exlusivo. Tienes que especificar en cada instrucion USE la palabra SHARED si la quieres compartida. Atentamente, Rolando Cochabamba - Bolivia.[/quote:2svnpd0t] Lucas asi como dice el amigo Rolando es.
problema en red local
Lucas USE (EMISOR) NEW ALIAS EMISOR [b:wvsvgbqx]SHARED[/b:wvsvgbqx] Slds
problema en red local
Hola. Muchas gracias. Voy a forzar el SHARED. Pero si no se abren en modo exclusivo (SET EXCLUSIVE OFF), entonces se deberían abrir en modo shared pienso yo. Saludos y gracias.
problema en red local
Por defecto las tablas se abren en modo exclusivo, recomiendo que siempre uses SHARED o EXCLUSIVE al momento de abrir las tablas ya que asi tienes un mayor control sobre ellas. Slds
problema extraño con get
Hola: Tengo un comportamiento muy extraño con get: cuando le metes el número 208605040000027483 lo redondea y lo convierte en 208605040000027500 al darle al TAB o al OK, y no sé por qué razón, pues yo no quiero nada de eso. ¿Alguien sabe por qué? Muchas gracias. El código es: // Testing GETs #include "FiveWin.ch" function Main() LOCAL oDlg, oGet LOCAL cCad := "Testing " // pad("Testing Gets",40) LOCAL nNum := 0 LOCAL dDat := Date() Set century On Set Date Ansi Set Date format "mm/dd/yyyy" SET _3DLOOK ON DEFINE DIALOG oDlg TITLE "TGet from " + FWDESCRIPTION @ 1.8, 2 SAY "Number:" OF oDlg @ 2, 6 GET oGet VAR nNum OF oDlg SIZE 80, 10 PICTURE "99999999999999999999999999" @ 3, 7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ACTION oDlg:End() @ 3, 16 BUTTON "&Cancel" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL ACTIVATE DIALOG oDlg CENTERED return nil //------------------------------------------------------------------------//
problema extraño con get
creo no estoy seguro si se me salen los años que la longitud maxima en clipper de un numero son de 16 digitos, de hecho agarras un nuymero y lo conviertes a string y te da los 16 espacios, de todos modos no me creas mucho porque no estoy muy seguro
problema extraño con get
Con números mayores funciona sin problemas. Lo que sucede es que algunas combinaciones numéricas, como la que he adjuntado, producen ese extrañísimo comportamiento.
problema extraño con get
Moises, el comportamiento no es para nada extraño, es el esperado. El tipo numérico en Clipper/Harbour puede ser LONG o DOUBLE, segun sea el valor almacenado. LONG tiene un rango de valores de -2147483648 al 2147483647. <!-- m --><a class="postlink" href="http://es.wikipedia.org/wiki/Tipo_de_dato_entero">http://es.wikipedia.org/wiki/Tipo_de_dato_entero</a><!-- m --> Superados los límites del LONG, el número se almacena como DOUBLE con las limitaciones del caso: Valor absoluto de 5.0 x 10^–324 a 1.7 x 10^308, con [b:3w572uhw]15 o 16 dígitos significativos[/b:3w572uhw]. En tu caso superas esos dígitos significativos, por lo que no puede representar los últimos de manera exacta y tiene el comportamiento que tu comentas. <!-- m --><a class="postlink" href="http://es.wikipedia.org/wiki/Double">http://es.wikipedia.org/wiki/Double</a><!-- m --> Un saludo, Carlos.[/b]
problema extraño con get
Carlos: Muchas gracias por tu respuesta. La verdad, siempre tan atinado y experto en tus aportes al foro <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->. Supongo que no podré hacer nada por arreglarlo, verdad? Otra cosilla, ¿dónde puedo encontrar información del MIDAS- generador de informes?. Creo que es de Binguen, verdad?. Muchas gracias por todo. Un saludo
problema extraño con get
Hola Moises, Con el tema del formato NUMERIC no hay mucho para hacer, no al menos de forma sencilla. Las soluciones que se me ocurren son un poco complejas y creo que no ameritan. Respecto del MIDAS, Bingen prometió publicarlo pero aún no ha podido, está como todos, liado con el trabajo. Cualquier novedad paso el aviso. Un saludo, Carlos.
problema extraño con get
Muchas gracias, Carlos. Por cierto, ¿me podrías, por favor, indicar el email de Binguen a ?. La web de muniser no funciona. Un saludo
problema in xbrowse:refresh() dopo cancellazione di 1 record
Ho riscontrato che dopo aver eliminato un record con una normale delete, se successivamente faccio una oBRW:refresh() fino a che non mi sposto dal record corrente mi rimane evidenziato il contenuto del vecchio record cancellato. Solo se ci clicco sopra e mi sposto vedo che scompare.Il problema è sulla TXBROWSE (REDEFINE XBROWSE ...), invece ho notato che è ok con il "vecchio" TWBROWSE (REDEFINE LISTBOX...) .Uso FWH 8.04 e XHARBOUR 1.1.MT
problema in xbrowse:refresh() dopo cancellazione di 1 record
ho notato che per fare un refresh() completo di oBRW dopo una delete di un record, occorre per forza dopo la delete muoversi nel dbf (forzando ad esempio uno skip e poi uno skip -1).Quindi facendo un refresh completo della dialog dov'è contenuto oBRW viene ridisegnato completamente anche oBRW.
problema in xbrowse:refresh() dopo cancellazione di 1 record
Magari basta uno skip 0.EMG
problema in xbrowse:refresh() dopo cancellazione di 1 record
No, non è sufficiente lo skip 0 .
problema llamando png desde recursos
Estoy colocando este código para poder llamar desde recursos los png ( en la clase bitmap ) , pero ::hBitmap = FWPngFromMemory(a_resHandle) de devuelve 0 creo que estoy pasando el puntero del array en vez el array ¿ como funcionaría ? [code=fw:1touqjy0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> hRes:= FindResource<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cResName , RT_RCDATA <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> a_resHandle := LoadResource<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, &nbsp;hRes <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pausa<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hBitmap</span> &nbsp;= FWPngFromMemory<span style="color: #000000;">&#40;</span>a_resHandle<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pausa<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pausa<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"png"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">hPalette</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lChanged &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBmpFile &nbsp;:= <span style="color: #00C800;">nil</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp;<span style="color: #00C800;">endif</span> <br />&nbsp;</div>[/code:1touqjy0]
problema llamando png desde recursos
Manuel, LoadResource() devuelve un handle ( HGLOBAL ) que FWH devuelve como un número. Asi que tu función lo que recibe es un número y no un array. Solo tienes que modificar la función FWPngFromMemory() para que reciba un número ( hb_parnl() )
problema llamando png desde recursos
Antono November 2011 ============= + new function FWPngFromMemory( <Bytes> ) Open a png File from array bytes <Bytes> return a bitmap handle [b:1xcn5b1b]FWPngFromMemory[/b:1xcn5b1b] no viene el fuente, esta en la libreria FIVEHC.LIB
problema llamando png desde recursos
De momento lo he resuelto asi : <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=26183#p143801">viewtopic.php?f=6&t=26183#p143801</a><!-- l --> Tiene razón Patricio , no disponemos de FWPngFromMemory() para cambiarla porlo que sería bueno tener una funcion que rescatase los png desde recursos directamente . [quote="Patricio Avalos Aguirre":1qxugjkp]Antono November 2011 ============= + new function FWPngFromMemory( <Bytes> ) Open a png File from array bytes <Bytes> return a bitmap handle [b:1qxugjkp]FWPngFromMemory[/b:1qxugjkp] no viene el fuente, esta en la libreria FIVEHC.LIB[/quote:1qxugjkp]
problema llamando png desde recursos
Este es el código de la función: [code=fw:3s9v3uez]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWPNGFROMMEMORY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><br />   PFWPNG pPng = <span style="color: #000000;">&#40;</span> PFWPNG <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> sizeof<span style="color: #000000;">&#40;</span> FWPNG <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   HB_FHANDLE Info = <span style="color: #000000;">&#40;</span> HB_FHANDLE <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   <br />   ReadFromMemory<span style="color: #000000;">&#40;</span> pPng, Info <span style="color: #000000;">&#41;</span>;<br />   <br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> pPng->hBitmap <span style="color: #000000;">&#41;</span>;<br />   hb_xfree<span style="color: #000000;">&#40;</span> pPng->image_data <span style="color: #000000;">&#41;</span>;<br />   hb_xfree<span style="color: #000000;">&#40;</span> pPng->row_pointers <span style="color: #000000;">&#41;</span>;<br />   hb_xfree<span style="color: #000000;">&#40;</span> pPng <span style="color: #000000;">&#41;</span>;<br />   <br /><span style="color: #000000;">&#125;</span></div>[/code:3s9v3uez] Creo que este código lo desarrolló Daniel, y actualmente está de viaje. Yo creo que tiene un error, y que debiera ser hb_parnl( 1 ) en vez de hb_parc( 1 ), por si te animas a probarlo. O tal vez, hb_parptr( 1 )
problema llamando png desde recursos
Añadida la function al final de tbitmap.prg lanza los errores de abajo .... me faltan cosas para que compile. [code=fw:2z7ofso2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbdefs.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWPNGFROMMEMORY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp;PFWPNG pPng = <span style="color: #000000;">&#40;</span> PFWPNG <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> sizeof<span style="color: #000000;">&#40;</span> FWPNG <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HB_FHANDLE Info = <span style="color: #000000;">&#40;</span> HB_FHANDLE <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReadFromMemory<span style="color: #000000;">&#40;</span> pPng, Info <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> pPng->hBitmap <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> pPng->image_data <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> pPng->row_pointers <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> pPng <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<br /><span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />&nbsp;</div>[/code:2z7ofso2] Obj\bitmap.c: Error E2451 bitmap.prg 1112: Undefined symbol 'PFWPNG' in function HB_FUN_FWPNGFROMMEMORY Error E2379 bitmap.prg 1112: Statement missing ; in function HB_FUN_FWPNGFROMMEMORY Error E2140 bitmap.prg 1113: Declaration is not allowed here in function HB_FUN_FWPNGFROMMEMORY Error E2451 bitmap.prg 1115: Undefined symbol 'pPng' in function HB_FUN_FWPNGFROMMEMORY Warning W8065 bitmap.prg 1115: Call to function 'ReadFromMemory' with no prototype in function HB_FUN_FWPNGFROMMEMORY
problema on transform
Estimados, [code=fw:6kwtzu0o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ?transform<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span>,<span style="color: #ff0000;">"@L9999"</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:6kwtzu0o] en harbour y xharbour retorna 0008 lo cual es correcto. [code=fw:6kwtzu0o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ?transform<span style="color: #000000;">&#40;</span>val<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"8"</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"@L9999"</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:6kwtzu0o] en harbour retorna 8, y xharbour 0008, ahi falla harbour [code=fw:6kwtzu0o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ?transform<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"@L9999"</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:6kwtzu0o] ambos retornan 8, ahi no se si falla o esta correcto, dado que la ayuda indica que [quote:6kwtzu0o]Syntax Transform( <xValue>, <cPicture> ) --> cFormattedString Arguments <xValue> This is a value of data type Character, Date, Logic, Memo or Numeric to be formatted. <cPicture> This is a PICTURE formatting string defining the formatting rules (see below). [/quote:6kwtzu0o] podrian aclarar? por favor...
problema on transform
[code=fw:31l7pme1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \samples\CVARGAS.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cString &nbsp;:= <span style="color: #ff0000;">"This is Harbour: "</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cString2 := <span style="color: #ff0000;">"This is xHarbour:"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nNumber &nbsp;:= <span style="color: #000000;">9923.34</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nNumber1 := <span style="color: #000000;">-95842.00</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lValue &nbsp; := .T.<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dDate &nbsp; &nbsp;:= Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;#IFDEF __XHARBOUR__<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// if xHarbour</span><br /><br />&nbsp; &nbsp; &nbsp; ? cString2, Transform<span style="color: #000000;">&#40;</span> nNumber, &nbsp;<span style="color: #ff0000;">"@L 99999999.99"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// &nbsp;"009923.34"</span><br /><br />&nbsp; &nbsp;#ELSE<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// if Harbour</span><br /><br />&nbsp; &nbsp; &nbsp; ? cString, &nbsp;Transform<span style="color: #000000;">&#40;</span> nNumber, &nbsp;<span style="color: #ff0000;">"@L 99999999.99"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// &nbsp;"009923.34"</span><br /><br />&nbsp; &nbsp;#ENDIF<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp;? "working with String"<br />&nbsp; &nbsp;? "Current String is", &nbsp;cString<br />&nbsp; &nbsp;? "All uppercased", &nbsp;Transform( cString, &nbsp;"@!" )<br />&nbsp; &nbsp;? "Date is", &nbsp;ddate<br />&nbsp; &nbsp;? "Date is ", &nbsp;Transform( ddate, &nbsp;"@D" )<br />&nbsp; &nbsp;? Transform( 0 &nbsp; &nbsp; &nbsp;, &nbsp;"@L 9999" &nbsp; &nbsp; ) &nbsp;// &nbsp;"0000"<br /><br /><br />The table below shows the possible function strings available with the Transform() function.<br /><br />&nbsp; &nbsp; &nbsp; @B &nbsp; Left justify the string within the format.<br />&nbsp; &nbsp; &nbsp; @C &nbsp; Issue a CR after format is numbers are positive.<br />&nbsp; &nbsp; &nbsp; @D &nbsp; Put dates in SET DATE format.<br />&nbsp; &nbsp; &nbsp; @E &nbsp; Put dates in BRITISH format.<br />&nbsp; &nbsp; &nbsp; @L &nbsp; Make a zero padded string out of the number.<br />&nbsp; &nbsp; &nbsp; @R &nbsp; Insert non template characters.<br />&nbsp; &nbsp; &nbsp; @X &nbsp; Issue a DB after format is numbers are negative.<br />&nbsp; &nbsp; &nbsp; @Z &nbsp; Display any zero as blank spaces.<br />&nbsp; &nbsp; &nbsp; @( &nbsp; Quotes around negative numbers<br />&nbsp; &nbsp; &nbsp; @! &nbsp; Convert alpha characters to uppercased format.<br /><br />The second part of <cTemplate> consists of the format string. Each character in the string may be formatted based on using the follow characters as template markers for the string.<br /><br />&nbsp; &nbsp; &nbsp; A,N,X,9,# &nbsp; Any data type<br />&nbsp; &nbsp; &nbsp; L &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Shows logical as "T" or "F"<br />&nbsp; &nbsp; &nbsp; Y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Shows logical as "Y" or "N"<br />&nbsp; &nbsp; &nbsp; ! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Convert to uppercase<br />&nbsp; &nbsp; &nbsp; $ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dollar sing in place of leading spaces in <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; numeric expression<br />&nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Asterisks in place of leading spaces in <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; numeric expression<br />&nbsp; &nbsp; &nbsp; , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Commas position<br />&nbsp; &nbsp; &nbsp; . &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Decimal point position<br />*/</span><br />&nbsp;</div>[/code:31l7pme1] Regards, saludos.
problema on transform
[quote="carlos vargas":jkyqqqx6]Estimados, [code=fw:jkyqqqx6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ?transform<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span>,<span style="color: #ff0000;">"@L9999"</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:jkyqqqx6] en harbour y xharbour retorna 0008 lo cual es correcto. [code=fw:jkyqqqx6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ?transform<span style="color: #000000;">&#40;</span>val<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"8"</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"@L9999"</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:jkyqqqx6] en harbour retorna 8, y xharbour 0008, ahi falla harbour [code=fw:jkyqqqx6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ?transform<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"@L9999"</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:jkyqqqx6] ambos retornan 8, ahi no se si falla o esta correcto, dado que la ayuda indica que [quote:jkyqqqx6]Syntax Transform( <xValue>, <cPicture> ) --> cFormattedString Arguments <xValue> This is a value of data type Character, Date, Logic, Memo or Numeric to be formatted. <cPicture> This is a PICTURE formatting string defining the formatting rules (see below). [/quote:jkyqqqx6] podrian aclarar? por favor...[/quote:jkyqqqx6] "@L9999" is not correct "@L 9999" is correct. We [u:jkyqqqx6][b:jkyqqqx6]should[/b:jkyqqqx6][/u:jkyqqqx6] separate "@L" and "9999" with one space. if we give the picture clause correctly, both Harbour and xHarbour give the same results correctly. [code=fw:jkyqqqx6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;? Transform<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"@L 9999"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp;Transform<span style="color: #000000;">&#40;</span> Val<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"8"</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"@L 9999"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:jkyqqqx6] Both Harbour and xHarbour produce the same result "0008" in both the cases. Transform( "8", "@L 9999" ) is NOT CORRECT, because this picture clause applies to numeric values only.
problema picture
Amigos, Necesito por favor su ayuda para alinear los campos numéricos también a la izquierda (101, 102 y 103), para que se vean como el primero, el Nombre, pero no lo consigo: [img:2uaba79j]http&#58;//i42&#46;tinypic&#46;com/2dsqqlz&#46;png[/img:2uaba79j] Este es el código: [code=fw:2uaba79j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, lSave := .f.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c100 := <span style="color: #ff0000;">"TEST ELVIRA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c101 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c102 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c103 := <span style="color: #000000;">0</span><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ELVIRA"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Prueba Elvira"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> c100 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> c101 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 9,999,999"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> c102 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 9,999,999"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> c103 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 9999"</span><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">701</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> lSave := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">702</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> lSave := .F., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><br /><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:2uaba79j] Y el .rc: [code=fw:2uaba79j]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\W</span>inApi.ch"</span><br /><br />#ifdef __FLAT__<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\W</span>inXP<span style="color: #000000;">\W</span>indowsXP.Manifest"</span><br />#endif<br /><br /><br /><br />ELVIRA <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">23</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">258</span>, <span style="color: #000000;">163</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | 0x4L | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Búsquedas"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;EDITTEXT <span style="color: #000000;">100</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">86</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP<br />&nbsp;EDITTEXT <span style="color: #000000;">101</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">62</span>, <span style="color: #000000;">24</span>, <span style="color: #000000;">11</span><br />&nbsp;EDITTEXT <span style="color: #000000;">102</span>, <span style="color: #000000;">127</span>, <span style="color: #000000;">62</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">11</span><br />&nbsp;EDITTEXT <span style="color: #000000;">103</span>, <span style="color: #000000;">180</span>, <span style="color: #000000;">62</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">11</span>, ES_RIGHT | WS_BORDER | WS_TABSTOP<br />&nbsp;LTEXT <span style="color: #ff0000;">"&Nombre:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">8</span><br />&nbsp;RTEXT <span style="color: #ff0000;">"&Págs.:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">155</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">12</span><br />&nbsp;RTEXT <span style="color: #ff0000;">"&Vols:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">17</span>, <span style="color: #000000;">8</span><br />&nbsp;RTEXT <span style="color: #ff0000;">"&Ejemplares:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">38</span>, <span style="color: #000000;">8</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"&Aceptar"</span>, <span style="color: #000000;">701</span>, <span style="color: #000000;">73</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">14</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"&Cancelar"</span>, <span style="color: #000000;">702</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">14</span><br /><span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp;</div>[/code:2uaba79j] Muy agradecida, me estoy volviendo loca. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
problema picture
Hola... Si usas un generador de recursos, en el mismo deberías tener una opción que indica la alineación del contenido del control. Por otro lado puedes probar agregar "ES_LEFT" a los controles que quieres poner a la izquierda. Espero te sirva. Saludos,
problema picture
Hola, Muchas gracias, ya lo había probado antes y nada: EDITTEXT 101, 51, 62, 24, 11, ES_LEFT | WS_BORDER | WS_TABSTOP EDITTEXT 102, 127, 62, 20, 11 No se qué puede ser. A ver si alguna alma caritativa me ayuda por favor.
problema picture
Entonces creo que deberías probar con poner en el GET el ALLTRIM(STR( c101 )) y luego a la hora de usar la variable aplicarle el VAL( c101 ) Saludos,
problema picture
[code=fw:38zmu6in]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\W</span>inApi.ch"</span><br /><br />#ifdef __FLAT__<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\W</span>inXP<span style="color: #000000;">\W</span>indowsXP.Manifest"</span><br />#endif<br /><br /><br /><br />ELVIRA <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">134</span>, <span style="color: #000000;">65</span>, <span style="color: #000000;">258</span>, <span style="color: #000000;">163</span><br /><span style="color: #0000ff;">STYLE</span> DS_ABSALIGN | DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Búsquedas"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;EDITTEXT <span style="color: #000000;">100</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">86</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP<br />&nbsp;CONTROL <span style="color: #ff0000;">"0"</span>, <span style="color: #000000;">101</span>, <span style="color: #ff0000;">"EDIT"</span>, ES_MULTILINE | WS_BORDER | WS_TABSTOP, <span style="color: #000000;">43</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">11</span><br />&nbsp;CONTROL <span style="color: #ff0000;">"0"</span>, <span style="color: #000000;">102</span>, <span style="color: #ff0000;">"EDIT"</span>, ES_MULTILINE | WS_BORDER | WS_TABSTOP, <span style="color: #000000;">137</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">11</span><br />&nbsp;EDITTEXT <span style="color: #000000;">103</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">11</span>, ES_RIGHT | ES_MULTILINE | WS_BORDER | WS_TABSTOP<br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"&Aceptar"</span>, <span style="color: #000000;">701</span>, <span style="color: #000000;">73</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">14</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"&Cancelar"</span>, <span style="color: #000000;">702</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">14</span><br />&nbsp;LTEXT <span style="color: #ff0000;">"&Nombre:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">8</span><br />&nbsp;RTEXT <span style="color: #ff0000;">"&Vols:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">17</span>, <span style="color: #000000;">8</span><br />&nbsp;RTEXT <span style="color: #ff0000;">"&Ejemplares:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">95</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">38</span>, <span style="color: #000000;">8</span><br />&nbsp;RTEXT <span style="color: #ff0000;">"&Págs.:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">190</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">12</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:38zmu6in] 
problema picture
Hola, Muchas gracias, sigue igual. El campo es numérico, y el problema viene con el picture. Quizás es un bug de fivewin.
problema picture
Hola, aca funciona perfecto con FWH13.05 Mayo de 2013 [code=fw:6yhwbf6f]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, lSave := .f.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c100 := <span style="color: #ff0000;">"TEST ELVIRA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c101 := <span style="color: #000000;">0.00</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c102 := <span style="color: #000000;">0.00</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c103 := <span style="color: #000000;">0.00</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGet := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ELVIRA"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Prueba Elvira"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> c100 <span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> c101 <span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@KE 9,999,999"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> c102 <span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@KE 9,999,999"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> c103 <span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@KE 9999"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">701</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> lSave := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">702</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> lSave := .F., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:6yhwbf6f] 
problema picture
Hola, Muchas gracias por la ayuda. Yo lo sigo viendo alineado a la derecha, cuando lo quiero a la izquierda al igual que el campo nombre: [img:abyr4xyf]http&#58;//i44&#46;tinypic&#46;com/2v2xtfd&#46;png[/img:abyr4xyf] ¿Qué editor de recursos usas?. Muchas gracias por tu atención!.
problema picture
Claro... El inconveniente naturalmente está en el picture, pero no lo veo como un problema, sino que que le está piniendo el picture que tu pones. Si le dices al control que ponga un picture de 3 enteros pero el número solo tiene uno vas a visualizar dos espacios y luego tu numero.
problema picture
Fíjate en el campo Ejemplares, 1, debería quitar los espacios que hay en la izquierda.
problema picture
Si lo que quieres hacer es esto: [url=http&#58;//s1218&#46;photobucket&#46;com/user/jreduojeda/media/Sintiacutetulo_zps20707cf9&#46;png&#46;html:3esij6rv][img:3esij6rv]http&#58;//i1218&#46;photobucket&#46;com/albums/dd419/jreduojeda/Sintiacutetulo_zps20707cf9&#46;png[/img:3esij6rv][/url:3esij6rv] Deberías definir la variable asociada al GET como caracter con un picture que sólo permita ingresar números. Luego al momento de usar la variable aplicarle el VAL()
problema picture
Hola, Quiero que fuese 123,456 y el campo sólo debe permitir números. Y la alineación al igual que tú, pegado el número a la izquierda sin espacios. Muchas gracias.
problema picture
En ese caso poné en el picture "###,###"
problema picture
Elvira: Tu problema está en el Picture que usas: - Si tu variable numerica tiene el numero 123 - y tu PICTURE tiene '9,999,999' - el PICTURE toma la parte más a la derecha de la plantilla para mostrar tu variable. - (seis espacios mas tu variable numerica) - La alternativa, eliminar el PICTURE innecesario para el ancho numerico. Prueba lo siguiente: [code=fw:2v5o54u3]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">LOCAL</span> MiDialog,oGet,MiNumero<br />  MiNumero=<span style="color: #000000;">123</span><br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> MiDialog <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'Probando Numeros ajustados a la izquierda'</span><br />       @ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> MiNumero <span style="color: #0000ff;">OF</span> MiDialog <span style="color: #0000ff;">PICTURE</span> nPict<span style="color: #000000;">&#40;</span>MiNumero<span style="color: #000000;">&#41;</span><br />       @ <span style="color: #000000;">2</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">'Aceptar'</span> <span style="color: #0000ff;">OF</span> MiDialog <span style="color: #0000ff;">ACTION</span> MiDialog:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> MiDialog<br />RETU <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">FUNCTION</span> nPict<span style="color: #000000;">&#40;</span>VaNum<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> LenNum,PicNum<br />   LenNum=LEN<span style="color: #000000;">&#40;</span>ALLTRIM<span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>VaNum<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   PicNum=<span style="color: #ff0000;">''</span><br />   <span style="color: #00C800;">IF</span> LenNum=<span style="color: #000000;">1</span><br />      PicNum=<span style="color: #ff0000;">'9'</span><br />   ELSEIF LenNum=<span style="color: #000000;">2</span><br />      PicNum=<span style="color: #ff0000;">'99'</span><br />   ELSEIF LenNum=<span style="color: #000000;">3</span><br />      PicNum=<span style="color: #ff0000;">'999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">4</span><br />      PicNum=<span style="color: #ff0000;">'9999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">5</span><br />      PicNum=<span style="color: #ff0000;">'99999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">6</span><br />      PicNum=<span style="color: #ff0000;">'999999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">7</span><br />      PicNum=<span style="color: #ff0000;">'9999999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">8</span><br />      PicNum=<span style="color: #ff0000;">'99999999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">9</span><br />      PicNum=<span style="color: #ff0000;">'999999999'</span><br />   ELSEIF LenNum=<span style="color: #000000;">10</span><br />      PicNum=<span style="color: #ff0000;">'9999999999'</span><br />   ENDI<br />RETU PicNum<br /><br /> </div>[/code:2v5o54u3] La variable PicNum puedes usarla con la plantilla que desees ... Espero te sirva Julio César Gómez Cortéz Godryc Experiencias Lima Perú FWH 6.12 me está gustando
problema picture
[quote="jrestojeda":1apa5xum]Si lo que quieres hacer es esto: [url=http&#58;//s1218&#46;photobucket&#46;com/user/jreduojeda/media/Sintiacutetulo_zps20707cf9&#46;png&#46;html:1apa5xum][img:1apa5xum]http&#58;//i1218&#46;photobucket&#46;com/albums/dd419/jreduojeda/Sintiacutetulo_zps20707cf9&#46;png[/img:1apa5xum][/url:1apa5xum] Deberías definir la variable asociada al GET como caracter con un picture que sólo permita ingresar números. Luego al momento de usar la variable aplicarle el VAL()[/quote:1apa5xum] Me pasa algo igual, cuando manejo valores numericos que identifican dinero, los alineo a la derecha, pero hay momentos que necesito valores que tengan miles y decimales como por lo menos peso...pero que debe estar alineado a la izqierda pero con su picture que muestre los enteros y decimales...pictu "999,999.99"... como al colega igual me lo pone a la derecha si el valor no llena toda la mascara, pero esto es dinamico...como se haria en ese caso.?
problema picture
José Luis Pruebe lo que publiqué, podría servirle Atte Julio César Gómez Cortéz
problema picture
[quote="Maggiro":1t7m57xr]José Luis Pruebe lo que publiqué, podría servirle Atte Julio César Gómez Cortéz[/quote:1t7m57xr] No habia visto lo tuyo, pruebo y aviso, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
problema tdockpnel imagenes a la derecha
Hola buenas tardes para todos Tenemos un problema con el tDockPnel, ya que el momento de cambiar el tamaño de la ventana, los iconos del encabezado del panel, no se alinean a la derecha, si no que conservan la posición inicial. El problema surge cuando utilizarmos la clausula [code=fw:3lk8nx2y]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">lLeftImgs</span> &nbsp; := .F.</div>[/code:3lk8nx2y] [img:3lk8nx2y]https&#58;//hymplus&#46;com/forofw/tdockpnel2&#46;png[/img:3lk8nx2y] [code=fw:3lk8nx2y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"colores.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"tgraph.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ribbon.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Static</span> oWindow<br /><span style="color: #00C800;">Static</span> nWAncho<br /><span style="color: #00C800;">Static</span> nWAlto<br /><span style="color: #00C800;">Static</span> nCol  <br /><span style="color: #00C800;">Static</span> nRow  <br /><br /><span style="color: #00C800;">Static</span> oFont<br /><span style="color: #00C800;">Static</span> oFontB<br /><span style="color: #00C800;">Static</span> oFontD<br /><span style="color: #00C800;">Static</span> oFont1<br /><span style="color: #00C800;">Static</span> oFont2<br /><span style="color: #00C800;">Static</span> oFont3<br /><span style="color: #00C800;">Static</span> oFont4<br /><span style="color: #00C800;">Static</span> oFontE<br /><span style="color: #00C800;">Static</span> oFontS<br /><span style="color: #00C800;">Static</span> oFontCtrl<br /><span style="color: #00C800;">Static</span> cPathApp<br /><br /><span style="color: #00C800;">Static</span> oDock1<br /><span style="color: #00C800;">Static</span> oDock2<br /><span style="color: #00C800;">Static</span> oDock3<br /><span style="color: #00C800;">Static</span> oDock4<br /><span style="color: #00C800;">Static</span> oDock5<br /><br /><span style="color: #00C800;">Static</span> cText := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cFont         := <span style="color: #ff0000;">"Liberation Mono"</span>   <span style="color: #B900B9;">//TAHOMA   //CALIBRI  //SEGOE UI SYMBOL</span><br /><br />   SetResDebug<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//? JPEGLee()</span><br /><br />   cPathApp        := cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   FErase<span style="color: #000000;">&#40;</span> cPathApp + <span style="color: #ff0000;">"Checkres.txt"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont  <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-11</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontB <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> BOLD     <span style="color: #B900B9;">//ARIAL NARROW</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-11</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontE <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont3 <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-20</span> <span style="color: #B900B9;">//BOLD</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont4 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"CALIBRI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontCtrl <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontS <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"FIXEDSYS"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br />   TestDockPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont3:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont4:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontB:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontE:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontCtrl:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontS:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   Checkres<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">/*<br />FUNCTION JPEGLee()<br />#pragma __binarystreaminclude "..\bitmaps\olga1.jpg" | RETURN %s*/</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> TestDockPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> nCol<br />   <span style="color: #00C800;">local</span> nRow<br />   <br />   TDockPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">lAllowMove</span>  := .T.<br /><br />   nWAncho   := <span style="color: #000000;">600</span><br />   nWAlto    := <span style="color: #000000;">400</span><br />   nCol      := Int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> - nWAncho <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   nRow      := Int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> - nWAlto  <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// + 2</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWindow <span style="color: #0000ff;">FROM</span> nRow, nCol <span style="color: #0000ff;">TO</span> nWAlto + nRow, nWAncho + nCol ; <span style="color: #B900B9;">//MDI ;</span><br />      <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test TDockPnel Control - "</span> + FWVERSION ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_WHITE, Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">182</span>, <span style="color: #000000;">182</span>, <span style="color: #000000;">182</span> <span style="color: #000000;">&#41;</span><br /><br />      CreaDocks<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWindow <span style="color: #B900B9;">// ON INIT CreaDocks()</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> CreaDocks<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oDock1  := TDockPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWindow <span style="color: #000000;">&#41;</span><br />   WITH OBJECT oDock1<br />      :<span style="color: #000000;">SetHeightCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o | <span style="color: #000000;">10</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> | o | <span style="color: #000000;">10</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">54</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - XEVal<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">nLeft</span>, o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o | <span style="color: #ff0000;">"Title"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetColors</span><span style="color: #000000;">&#40;</span> METRO_RED, CLR_WHITE, Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">88</span>, <span style="color: #000000;">88</span>, <span style="color: #000000;">88</span> <span style="color: #000000;">&#41;</span>, CLR_HGRAY <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont4 <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetBorderSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetImgsFiles</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\p</span>anel.bmp"</span>, ;<br />                        <span style="color: #000000;">&#123;</span> || oDock1:<span style="color: #000000;">aBtnBmps</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetImages</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oDock1:<span style="color: #000000;">lSelected</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\p</span>anel.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>heck.bmp"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                             oDock1:<span style="color: #000000;">lSelected</span> := !oDock1:<span style="color: #000000;">lSelected</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"ToolTip"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCtrlsPnel</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o, nT, nL, nH, nW, oB | oB := Test1<span style="color: #000000;">&#40;</span> o, nT, nL, nH, nW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bRClicked</span>   := <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oDock1:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</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><br />      <span style="color: #B900B9;">//</span><br />      <span style="color: #B900B9;">// Controls predefined in :oPnelH ( interior Panel )</span><br />      <span style="color: #B900B9;">//</span><br />      :<span style="color: #000000;">lBottomH</span>    := .T.<br />      :<span style="color: #000000;">SetTypeCtrl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetHeightCtrl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetColorsCtrl</span><span style="color: #000000;">&#40;</span> CLR_WHITE, METRO_OLIVE <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">aRectText</span>   := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">60</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">cTitH</span>       := <span style="color: #ff0000;">"Control Title - "</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> :<span style="color: #000000;">lBottomH</span>, <span style="color: #ff0000;">"TOP"</span>, <span style="color: #ff0000;">"BOTTOM"</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   oDock2  := TDockPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWindow <span style="color: #000000;">&#41;</span><br />   WITH OBJECT oDock2<br />      :<span style="color: #000000;">SetHeightCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o | XEval<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>, o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | XEval<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nRight</span>, o <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">10</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | XEval<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nBottom</span>, o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + XEval<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">nLeft</span>, o <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">40</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o | <span style="color: #ff0000;">"Login Process"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetColors</span><span style="color: #000000;">&#40;</span> CLR_WHITE, METRO_AMBER, METRO_AMBER, CLR_WHITE <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetBorderSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont4 <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">lLeftImgs</span>   := .F.<br />      :<span style="color: #000000;">SetImgsFiles</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\o</span>ptions.bmp"</span>, <span style="color: #000000;">&#123;</span> | o | MyPopupMnu<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"ToolTip"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCtrlsPnel</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o, nT, nL, nH, nW, oB | oB := Test3<span style="color: #000000;">&#40;</span> o, nT, nL, nH, nW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bRClicked</span>   := <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oDock2:<span style="color: #000000;">oPnelH</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</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><br />      :<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   oDock3  := TDockPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWindow <span style="color: #000000;">&#41;</span><br />   WITH OBJECT oDock3<br />      :<span style="color: #000000;">SetHeightCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o | XEval<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nBottom</span>, o <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">10</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | <span style="color: #000000;">10</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + XEval<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHeight</span>, o <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">94</span> <span style="color: #000000;">&#125;</span>, ;<br />                 <span style="color: #000000;">&#123;</span> | o | XEVal<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nRight</span>, o <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o | <span style="color: #ff0000;">"Title"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetBorderSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetColors</span><span style="color: #000000;">&#40;</span> CLR_WHITE, METRO_RED, Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">88</span>, <span style="color: #000000;">88</span>, <span style="color: #000000;">88</span> <span style="color: #000000;">&#41;</span>, CLR_WHITE <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont4 <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetImgsFiles</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\m</span>in.bmp"</span>, ;<br />                       <span style="color: #000000;">&#123;</span> || oDock1:<span style="color: #000000;">aBtnBmps</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetImages</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oDock1:<span style="color: #000000;">lSelected</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\p</span>anel.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>heck.bmp"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                            oDock1:<span style="color: #000000;">lSelected</span> := !oDock1:<span style="color: #000000;">lSelected</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"ToolTip"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetCtrlsPnel</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | o, nT, nL, nH, nW, oB | oB := Test2<span style="color: #000000;">&#40;</span> o, nT, nL, nH - <span style="color: #000000;">1</span>, nW, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, ;<br />                        Test2<span style="color: #000000;">&#40;</span> o, nT, oB:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">2</span>, nH - <span style="color: #000000;">1</span>, nW - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bRClicked</span>   := <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oDock1:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</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><br />      :<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Test1<span style="color: #000000;">&#40;</span> oP, nT, nL, nH, nW <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oBrw<br />   <span style="color: #00C800;">local</span> oBar<br />   <span style="color: #00C800;">local</span> aData := <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JAN"</span>, <span style="color: #000000;">1000</span>, <span style="color: #000000;">1200</span>,  <span style="color: #000000;">900</span>,  <span style="color: #000000;">400</span>,  <span style="color: #000000;">700</span>,  <span style="color: #000000;">400</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"FEB"</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1300</span>, <span style="color: #000000;">1000</span>,  <span style="color: #000000;">500</span>,  <span style="color: #000000;">800</span>,  <span style="color: #000000;">500</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAR"</span>, <span style="color: #000000;">1050</span>, <span style="color: #000000;">1800</span>, <span style="color: #000000;">1900</span>,  <span style="color: #000000;">700</span>, <span style="color: #000000;">1400</span>, <span style="color: #000000;">1600</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APR"</span>, <span style="color: #000000;">1825</span>, <span style="color: #000000;">1975</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAY"</span>, <span style="color: #000000;">2000</span>, <span style="color: #000000;">1670</span>, <span style="color: #000000;">1550</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JUN"</span>, <span style="color: #000000;">0970</span>, <span style="color: #000000;">1025</span>, <span style="color: #000000;">1100</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JUL"</span>, <span style="color: #000000;">1150</span>, <span style="color: #000000;">1600</span>, <span style="color: #000000;">1750</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"AUG"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SEP"</span>, <span style="color: #000000;">1150</span>, <span style="color: #000000;">1320</span>, <span style="color: #000000;">1450</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"OCT"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"NOV"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DEC"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>   ;<br />                  <span style="color: #000000;">&#125;</span><br /><br />   @ nT, nL <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">OF</span> oP <span style="color: #0000ff;">PIXEL</span> ;<br />      DATASOURCE aData ;<br />      COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span> ;<br />      HEADERS <span style="color: #ff0000;">"MONTH"</span>, <span style="color: #ff0000;">"USA"</span>, <span style="color: #ff0000;">"EUROPE"</span>, <span style="color: #ff0000;">"ASIA"</span>, <span style="color: #ff0000;">"OTHERS"</span>, <span style="color: #ff0000;">"REST"</span> ;<br />      AUTOSORT LINES <span style="color: #0000ff;">STYLE</span> FLAT <span style="color: #B900B9;">// NOBORDER</span><br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">lRecordSelector</span> := .F.<br />      :<span style="color: #000000;">lHScroll</span>        := .F.<br />      :<span style="color: #000000;">lVScroll</span>        := .F.<br />      :<span style="color: #000000;">l2007</span>           := .F.<br />      :<span style="color: #000000;">nStretchCol</span>     :=  <span style="color: #000000;">1</span><br />      :<span style="color: #000000;">lFitGridHeight</span>  := .T.<br />      :<span style="color: #000000;">nHeaderHeight</span>   := <span style="color: #000000;">32</span><br />      :<span style="color: #000000;">nRowHeight</span>      := <span style="color: #000000;">27</span><br />      :<span style="color: #000000;">nMarqueeStyle</span>   := MARQSTYLE_HIGHLROW<br />      :<span style="color: #000000;">bClrRowFocus</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">220</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 />      :<span style="color: #000000;">bClrStd</span>         := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">88</span>, <span style="color: #000000;">88</span>, <span style="color: #000000;">88</span> <span style="color: #000000;">&#41;</span>, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nColorPen</span>       := CLR_HGRAY<br />      :<span style="color: #000000;">bClrHeader</span>      := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, CLR_WHITE, CLR_HGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">lFullGrid</span>       := .T.<br />      :<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFontCtrl <span style="color: #000000;">&#41;</span><br />      AEVal<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> | o | o:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"999,999.99"</span>, o:<span style="color: #000000;">nWidth</span> := Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">2</span>, Len<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      AEVal<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> | o | o:<span style="color: #000000;">oHeaderFont</span> := oFont1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br /><span style="color: #00C800;">Return</span> oBrw<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Test2<span style="color: #000000;">&#40;</span> oP, nT, nL, nH, nW, nType <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oGraph<br />   <span style="color: #00C800;">local</span> aVals1<br />   <span style="color: #00C800;">local</span> aVals2<br />   <span style="color: #00C800;">local</span> aVals3<br />   <span style="color: #00C800;">local</span> aCols := <span style="color: #000000;">&#123;</span>  ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MONTH"</span>,     <span style="color: #ff0000;">'C'</span>,  <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"USAS"</span>,      <span style="color: #ff0000;">'N'</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"EUROS"</span>,     <span style="color: #ff0000;">'N'</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ASIAS"</span>,     <span style="color: #ff0000;">'N'</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"USAC"</span>,      <span style="color: #ff0000;">'N'</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"EUROC"</span>,     <span style="color: #ff0000;">'N'</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ASIAC"</span>,     <span style="color: #ff0000;">'N'</span>,  <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> aData := <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JAN"</span>, <span style="color: #000000;">1000</span>, <span style="color: #000000;">1200</span>,  <span style="color: #000000;">900</span>,  <span style="color: #000000;">400</span>,  <span style="color: #000000;">700</span>,  <span style="color: #000000;">400</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"FEB"</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1300</span>, <span style="color: #000000;">1000</span>,  <span style="color: #000000;">500</span>,  <span style="color: #000000;">800</span>,  <span style="color: #000000;">500</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAR"</span>, <span style="color: #000000;">1050</span>, <span style="color: #000000;">1800</span>, <span style="color: #000000;">1900</span>,  <span style="color: #000000;">700</span>, <span style="color: #000000;">1400</span>, <span style="color: #000000;">1600</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"APR"</span>, <span style="color: #000000;">1825</span>, <span style="color: #000000;">1975</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAY"</span>, <span style="color: #000000;">2000</span>, <span style="color: #000000;">1670</span>, <span style="color: #000000;">1550</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JUN"</span>, <span style="color: #000000;">0970</span>, <span style="color: #000000;">1025</span>, <span style="color: #000000;">1100</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JUL"</span>, <span style="color: #000000;">1150</span>, <span style="color: #000000;">1600</span>, <span style="color: #000000;">1750</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"AUG"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SEP"</span>, <span style="color: #000000;">1150</span>, <span style="color: #000000;">1320</span>, <span style="color: #000000;">1450</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"OCT"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"NOV"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>,  ;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DEC"</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">1700</span>, <span style="color: #000000;">1850</span>,  <span style="color: #000000;">675</span>, <span style="color: #000000;">1100</span>, <span style="color: #000000;">1425</span> <span style="color: #000000;">&#125;</span>   ;<br />                  <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">DEFAULT</span> nT    := <span style="color: #000000;">2</span><br />   <span style="color: #00C800;">DEFAULT</span> nL    := <span style="color: #000000;">2</span><br />   <span style="color: #00C800;">DEFAULT</span> nH    := oP:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">4</span><br />   <span style="color: #00C800;">DEFAULT</span> nW    := oP:<span style="color: #000000;">nWidth</span>  - <span style="color: #000000;">4</span><br />   <span style="color: #00C800;">DEFAULT</span> nType := <span style="color: #000000;">1</span><br /><br />   <span style="color: #00C800;">if</span> !File<span style="color: #000000;">&#40;</span> cPathApp + <span style="color: #ff0000;">"SALECOST.DBF"</span> <span style="color: #000000;">&#41;</span><br />      DBCREATE<span style="color: #000000;">&#40;</span> cPathApp + <span style="color: #ff0000;">"SALECOST.DBF"</span>, aCols, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"SC1"</span> <span style="color: #000000;">&#41;</span><br />      FW_ArrayToDBF<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      DbUseArea<span style="color: #000000;">&#40;</span> .F., <span style="color: #ff0000;">"DBFCDX"</span>, cPathApp + <span style="color: #ff0000;">"SALECOST.DBF"</span>, <span style="color: #ff0000;">"SC1"</span>, .T., .F. <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   GO TOP<br />   @ nT, nL GRAPH oGraph <span style="color: #0000ff;">SIZE</span> Int<span style="color: #000000;">&#40;</span> nW / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">2</span>, nH <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oP ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Sales and Costs"</span> ;<br />      XVALUES YVALUES LEGENDS<br />   <span style="color: #B900B9;">//oGraph:lBorders   := .T.</span><br />   oGraph:<span style="color: #000000;">lViewVal</span> := .T.<br />   oGraph:<span style="color: #000000;">nType</span>      := nType<br />   oGraph:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> oP:<span style="color: #000000;">nClrText</span>, oP:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />   oGraph:<span style="color: #000000;">cTitY</span>      := SC1->MONTH<br />   <span style="color: #B900B9;">//oGraph:l3D        := .T.</span><br />   aVals1            := <span style="color: #000000;">&#123;</span> SC1->USAS, SC1->EUROS <span style="color: #000000;">&#125;</span><br />   aVals2            := <span style="color: #000000;">&#123;</span> SC1->USAC, SC1->EUROC <span style="color: #000000;">&#125;</span><br />   ADD SERIE <span style="color: #0000ff;">TO</span> oGraph SERIE aVals1 LEGEND <span style="color: #ff0000;">"Sales"</span> <span style="color: #0000ff;">COLOR</span> METRO_OLIVE<br />   ADD SERIE <span style="color: #0000ff;">TO</span> oGraph SERIE aVals2 LEGEND <span style="color: #ff0000;">"Costs"</span> <span style="color: #0000ff;">COLOR</span> METRO_STEEL<br />   SET Y LABELS <span style="color: #0000ff;">OF</span> oGraph <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"USA"</span>, <span style="color: #ff0000;">"EUROPE"</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//, "ASIA" }</span><br />   oGraph:<span style="color: #000000;">nMaxVal</span>    := <span style="color: #000000;">2000</span><br />   oGraph:<span style="color: #000000;">SetArrayFonts</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> oFont4, oFont, oFont1, oFont, oFontB, oFontE, oFont1, oFont1, oFontB <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> nType = <span style="color: #000000;">1</span>  .or. nType = <span style="color: #000000;">2</span><br />      <span style="color: #B900B9;">//oGraph:SetYVals( { "A", "N", "V", "O", "J" } )</span><br />      oGraph:<span style="color: #000000;">nXRanges</span>  := <span style="color: #000000;">8</span><br />      oGraph:<span style="color: #000000;">nMaxVal</span>   := <span style="color: #000000;">3000</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> oGraph<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MyPopupMnu<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oMnu<br />   <span style="color: #00C800;">local</span> nRow  := o:<span style="color: #000000;">nTop</span>  + Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nCol  := o:<span style="color: #000000;">nLeft</span> + Int<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">MENU</span> oMnu <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2013</span> ;<br />      COLORSELECT METRO_STEEL, METRO_STEEL, CLR_WHITE ;<br />      COLORMENU CLR_WHITE, CLR_BLUE ;<br />      COLORSEPARATOR METRO_STEEL ;<br />      COLORLEFT CLR_WHITE ;<br />      <span style="color: #0000ff;">FONT</span> oFont4<br /><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Save Prompt"</span>    <span style="color: #0000ff;">ACTION</span> cText := oDock2:<span style="color: #000000;">SetCaption</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Change Prompt"</span>  <span style="color: #0000ff;">ACTION</span> oDock2:<span style="color: #000000;">SetCaption</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"New Caption"</span> + CRLF + <span style="color: #ff0000;">"Second Line"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Restore Prompt"</span> <span style="color: #0000ff;">ACTION</span> oDock2:<span style="color: #000000;">SetCaption</span><span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">SEPARATOR</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Change Colors Panel Main"</span>     <span style="color: #0000ff;">ACTION</span> oDock2:<span style="color: #000000;">ChangeColorsP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || CLR_RED <span style="color: #000000;">&#125;</span>,   <span style="color: #000000;">&#123;</span> || CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Change Colors Panel Controls"</span> <span style="color: #0000ff;">ACTION</span> oDock2:<span style="color: #000000;">ChangeColorsH</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || CLR_WHITE <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> || CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">SEPARATOR</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">ACTION</span> o:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ENDMENU</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MENU</span> oMnu <span style="color: #00C800;">AT</span> nRow, nCol <span style="color: #0000ff;">OF</span> o:<span style="color: #000000;">oWnd</span><br /><br /><span style="color: #00C800;">Return</span> oMnu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Test3<span style="color: #000000;">&#40;</span> oP, nT, nL, nH, nW <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oImage, oFontSay<br />   <span style="color: #00C800;">local</span> oNameUser, oPassword<br />   <span style="color: #00C800;">local</span> oBtn1, oBtn2<br />   <span style="color: #00C800;">local</span> oFontI, oFontBtn<br />   <span style="color: #00C800;">local</span> cNameUser := space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cPassword := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontI <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"CALIBRI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-15</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBtn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-17</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontSay <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-25</span> BOLD <span style="color: #B900B9;">//ITALIC</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, WS_CHILD <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>, <span style="color: #000000;">254</span>, <span style="color: #000000;">254</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">FROM</span> nT, nL <span style="color: #0000ff;">TO</span> nH, nW <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">OF</span> oP<br /><br />   <span style="color: #B900B9;">//DEFINE WINDOW oWnd STYLE nOr( WS_POPUP, WS_BORDER ) COLOR CLR_BLACK, nRGB( 253, 254, 254 )</span><br />   <span style="color: #B900B9;">//   oWnd:nHeight := 320</span><br />   <span style="color: #B900B9;">//   oWnd:nWidth := 400</span><br />   <span style="color: #B900B9;">//oWnd  := oP</span><br /><br />      @ <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Cristóbal Navarro ( ® ) "</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oWnd ;<br />         <span style="color: #0000ff;">FONT</span> oFontSay <span style="color: #0000ff;">CENTER</span> TRANSPARENT<br />      @ <span style="color: #000000;">45</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">SAY</span> Upper<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FiveTech:  "</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Enter your Credentials"</span> <span style="color: #0000ff;">PIXEL</span> ;<br />         <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFontI <span style="color: #0000ff;">CENTER</span> TRANSPARENT<br /><br />      @ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">GET</span> oNameUser <span style="color: #0000ff;">VAR</span> cNameUser <span style="color: #0000ff;">OF</span> oWnd;<br />         <span style="color: #0000ff;">COLOR</span> Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span>, CLR_WHITE <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />         CUEBANNER <span style="color: #ff0000;">"User"</span> <span style="color: #0000ff;">PIXEL</span> BOTTOMBORDER ;<br />         <span style="color: #0000ff;">FONT</span> oFontBtn ;<br />         INFIELD INFONT oFontI INCLRTXT CLR_GRAY INCLRBORDER Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">204</span>, <span style="color: #000000;">204</span>, <span style="color: #000000;">204</span> <span style="color: #000000;">&#41;</span> ;<br />         INCLRLINE CLR_RED DYNAMIC <span style="color: #B900B9;">//GROUP</span><br />   <br />      @ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">GET</span> oPassword <span style="color: #0000ff;">VAR</span> cPassword <span style="color: #0000ff;">OF</span> oWnd;<br />         <span style="color: #0000ff;">COLOR</span> Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span>, CLR_WHITE;<br />         CUEBANNER <span style="color: #ff0000;">"Enter Password"</span> PASSWORD <span style="color: #0000ff;">PIXEL</span> BOTTOMBORDER ;<br />         <span style="color: #0000ff;">FONT</span> oFontBtn <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@40"</span> ;<br />         INFIELD INFONT oFontI INALIGN <span style="color: #000000;">0</span><br /><br />      @ <span style="color: #000000;">260</span>, <span style="color: #000000;">40</span> FLATBTN oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Access"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">140</span>, <span style="color: #000000;">40</span> ;<br />         <span style="color: #0000ff;">FONT</span> oFontBtn;<br />         <span style="color: #0000ff;">COLOR</span> CLR_WHITE, METRO_STEEL ;<br />         <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />      @ <span style="color: #000000;">260</span>,<span style="color: #000000;">210</span> FLATBTN oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">140</span>, <span style="color: #000000;">40</span> ;<br />         <span style="color: #0000ff;">FONT</span> oFontBtn;<br />         <span style="color: #0000ff;">COLOR</span> CLR_WHITE, METRO_STEEL ;<br />         <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oNameUser:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   <span style="color: #B900B9;">//ACTIVATE WINDOW oWnd CENTER ON INIT ( oNameUser:SetFocus() )</span><br />   oFontI:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontBtn:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontSay:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> oWnd<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MyRibbonSetup<span style="color: #000000;">&#40;</span> oCtrl, oP <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oGr1<br />   <br />   oCtrl:<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"NEW"</span><br />   ADD GROUP oGr1 RIBBON oCtrl <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"New"</span> WIDTH Int<span style="color: #000000;">&#40;</span> oP:<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />       GRADIANT <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span>, Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   oCtrl:<span style="color: #000000;">AddTab</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"OTHER"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//oCtrl:SetStyles( .F., .T. )</span><br /><br /><span style="color: #00C800;">Return</span> oP<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MyButtonBarSetup<span style="color: #000000;">&#40;</span> oCtrl, oP <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oBtt1<br />   <span style="color: #00C800;">local</span> oBtt2<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtt1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">OF</span> oCtrl <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ButtonBar"</span> <span style="color: #000000;">&#41;</span> ;<br />      TOOLTIP <span style="color: #ff0000;">"TDockPnel Power"</span> GROUP <span style="color: #0000ff;">LEFT</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>lose.bmp"</span> FLAT<br />   oBtt1:<span style="color: #000000;">nClrText</span>  := CLR_BLUE<br />   oBtt1:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">48</span> * <span style="color: #000000;">2</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtt2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button"</span> <span style="color: #0000ff;">OF</span> oCtrl <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button"</span> <span style="color: #000000;">&#41;</span> ;<br />      TOOLTIP <span style="color: #ff0000;">"TDockPnel Power"</span> GROUP <span style="color: #0000ff;">LEFT</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>older.bmp"</span> FLAT<br />   oBtt2:<span style="color: #000000;">nClrText</span>  := CLR_BLUE<br />   oBtt2:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">48</span> * <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">Return</span> oP<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /> </div>[/code:3lk8nx2y]
problema urgente por favor
Ya he puesto varias veces el mensaje en el foro necesito generar un fichero ascii con los siguientes datos. Mi intencion es generar un fichero asci con los datos de los pedidos y enviarlos por correo electronico. El formato de de ser el siguiente ========================================== Articulo Nombre del articulo Cantidad ========================================== ??????? ????????????????????????????????????? ???????????? ??????? ????????????????????????????????????? ???????????? ??????? ????????????????????????????????????? ???????????? y asi sucesivamente, he probado con el FWRITE(xxx,texto+chr(10)+chr(13)) pero no me realiza el salto de linea en el fichero ASCII y no se como solucionar este problema de otra forma. GRACIAS <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
problema urgente por favor
Este ejemplo funciona correctamente: [code:2tmc6of9] #include "FWCE&#46;ch" function Main&#40;&#41; local nHand &#58;= fCreate&#40;'fichero&#46;txt'&#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fWrite&#40;nHand, "Probando" + Chr&#40;13&#41;+Chr&#40;10&#41; &#41; fClose&#40;nHand&#41; MsgInfo&#40; MemoRead&#40; "fichero&#46;txt" &#41; &#41; return nil [/code:2tmc6of9]
problema urgente por favor
Generado con Memowrit() y tambien funciona
problema urgente por favor
[quote:1b9porid]FWRITE(xxx,texto+chr(10)+chr(13)) [/quote:1b9porid] Debe ser Chr(13)+Chr(10), solo eso hace que el Bloc de notas te visualice el contenido en una sola linea. Tanto lo que te comenta Rene, como Antonio, como yo mismo en el anterior hilo, funcina 100% seguro.
problema urgente por favor
gracias.
problema urgente tvget
saludos tengo el siguiente problema uso la clase tvget en mi sistema, trato de posecionarme en el caracter 7 del get pero no se deja utilizo el metodo getpos, setpos y ninguno me funciona alguien ya tiene esta solucion o sabe como lo puedo hacer antonio
problema urgente tvget
Saludos tomafa... Voy a pecar de ignorante. Pero cual es la clase tvget? Es una clase de terceros? cual es la longitud del get?
problema urgente tvget
Daniel, ES una de las clases que hizo Vagner y efectivamente es de tercero aunque free. saludos [quote="Daniel Garcia-Gil"]Saludos tomafa... Voy a pecar de ignorante. Pero cual es la clase tvget? Es una clase de terceros? cual es la longitud del get?[/quote]
problema urgente tvget
esta clase es de /*-------------------------------------------------------------------------*/ /* VGet - Programa para Desenhar Gets diferentes do Windows */ /* Programa - TGet.Prg (Modificado) */ /* Programador - Vagner Wirts - Sao Paulo - Brasil */ /* Distribuicao Gratuita - Favor nao Retirar o Nome do Programador */ /*-------------------------------------------------------------------------*/ TVGet la utilizo para los get pero no me esta esta funcionando este metodo SetPos() Saludos Antonio
problema urgente tvget
ya lo resolvi Gracias
problema urgente tvget
Antonio, Tengo esta clase, aunque no la he usado aún, te importaría compartir como solucionaste el tema? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
problema urgente tvget
Saludos: el problema que tenia es que en un get yo le asignaba un dato y despues del dato tenia que aparecer el cursos algo asi Pro-12 el cursor tiene que aparecer el la posicion 4 para que me respete el texto yo utilizo la clase vGet y no me hacia eso investigando el la clases hize esto oDat[13]:SetFocus() oDat[13]:Refresh() oDat[13]:SetPos( Len( Alltrim( oDat[13]:Value() ) )+1 ) con este codigo solucione mi problema lo unico que cambio es asignarle el focus al get y con eso resolvi mi problema espero ser claro explique el problema y la solucion y gracias a todos lo que revisan los mensajes y ponen su opinion Antonio
problema urgente tvget
[quote="tomafa":nzio6gkd]Saludos: el problema que tenia es que en un get yo le asignaba un dato y despues del dato tenia que aparecer el cursos algo asi Pro-12 el cursor tiene que aparecer el la posicion 4 para que me respete el texto yo utilizo la clase vGet y no me hacia eso investigando el la clases hize esto oDat[13]:SetFocus() oDat[13]:Refresh() oDat[13]:SetPos( Len( Alltrim( oDat[13]:Value() ) )+1 ) con este codigo solucione mi problema lo unico que cambio es asignarle el focus al get y con eso resolvi mi problema espero ser claro explique el problema y la solucion y gracias a todos lo que revisan los mensajes y ponen su opinion Antonio[/quote:nzio6gkd] Gracias por tu aporte!
problema utilizando una base de datos
<!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Hola amigos: Estoy haciendo pruebas con bases de datos con fivewin, antes de migrar un aplicación y me surge este problema con una base de datos: function principal() declaro variables ............. use clientes new index on nombre to cli01 index on direccion to cli02 .............. define window oWnd llamada a browseclientes() Activate window oWnd use // cierra la base de datos function browseclientes() declaro variables DEFINE DIALOG oDlg @ 3, 1 LISTBOX oLbx; FIELDS Clientes->Nombre; HEADERS Nombre; FIELDSIZES 50; etc ... ACTIVATE DIALOG oDlg; return (nil) EL BROWSE LO HACE SIN NINGUN PROBLEMA TODAS LAS VECES QUE LLAMO A LA FUNCION AL SALIR DEL PROGRAMA PRINCIPAL DA UN ERROR DE PROTECCION GENERAL pero... si quito las lineas use clientes new index on nombre to cli01 index on direccion to cli02 de la funcion principal() y las pongo despues de la declaracion de variables de la funcion browseclientes() me da el ERROR DE PROTECCION GENERAL al llamar a esta funcion y el programa se cierra estoy utilizando la version 1.92 de fivewin clipper 5.2a y microsoft link 5.60
problema utilizando una base de datos
Javi, la versión 1.92 de FiveWin es muy antigua y contenía muchos errores. Lo idóneo es que te actualices a una versión de FiveWin reciente. Y de paso, el mejor consejo es que te pases a 32 bits usando FiveWin para Harbour/xHarbour (FWH).
problema utilizando una base de datos
cierra la base de datos con Dbcloseall()
problema utilizando una base de datos
Buenas, tambien puedes cerrar todas las bases de datos con: [code:r5fyg3dv]close databases[/code:r5fyg3dv] Nos leemos!!
problemas Unresolved external _HB_FUN_HB_G ayuda por favor
Un saludito y aver que si me pueden ayudar Estamos utilizando Harbour Compiler Alpha build 46.2 (Flex) Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org">http://www.harbour-project.org</a><!-- m --> y FWh 2.5 el make y fwh.mak Estamos emigrando y haciendo pruebas con un amigo que posee la version que he mensionado y juntos tartamos de compilar un prg de ejempo que viene el fwh2.5 en samples Nos daba el error de .lib que no estaban con la configuracion de .cfg del BCC55 que hasbias puesto se definio el problema. Ahora sabemos que estos problemas o pensamos podriamos decir que son por falta de librerias o que la version no es compatible , podrian decirnos que sucede Gracias. MAKE Version 5.2 Copyright (c) 1987, 2000 Borland c:\bcc55\bin\ilink32.exe -Gn -aa -Tpe -s -Iobj -x @MAKE0000.@@@ Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_HB_FUN_HB_GT_WIN' referenced from C:\HARBOUR\LIB\RTL.LIB|gtsys Error: Unresolved external '_hb_sxDeCrypt' referenced from C:\HARBOUR\LIB\RDD.LIB|dbf1 Error: Unresolved external '_hb_sxPtoD' referenced from C:\HARBOUR\LIB\RDD.LIB|dbf1 Error: Unresolved external '_hb_sxDtoP' referenced from C:\HARBOUR\LIB\RDD.LIB|dbf1 Error: Unresolved external '_hb_sxEnCrypt' referenced from C:\HARBOUR\LIB\RDD.LIB|dbf1 Error: Unresolved external '_HB_FUN_DBFNTX' referenced from C:\HARBOUR\LIB\RDD.LIB|rddsys Error: Unresolved external '_HB_FUN_DBFFPT' referenced from C:\HARBOUR\LIB\RDD.LIB|rddsys ** error 2 ** deleting .\WIN32.exe
problemas Unresolved external _HB_FUN_HB_G ayuda por favor
.....Enlaza.. HBSIX.LIB
problemas Unresolved external _HB_FUN_HB_G ayuda por favor
Enlaza también DBFFTP.lib, DBFNTX.lib y GTWIN.lib Atención: a partir de FWH Junio 2006 se usa GTGUI.lib en vez de GTWIN.lib.
problemas al Controlar el escaner via ActiveX ocx
Hola,Estoy usando una librería trial ocx para crear un dialogo que me permita controlar el escaner independientemente al software que trae.He probado la siguiente secuencia de comandos:[code:2dem474y] function Main&#40;&#41; local oScan oScan &#58;= TOleAuto&#40;&#41;&#58;New&#40; "csXImageTrial&#46;ImageBox" &#41; oScan&#58;WaitForAcquire &#58;= &#46;t&#46; oScan&#58;UseTwainInterface &#58;= &#46;f&#46; // Evitamos que llame al software del escaner&#46; oScan&#58;SelectTWainDevice&#40;&#41; // Seleccionamos el escaner a utilizar MsgInfo&#40; "Before" &#41; oScan&#58;Acquire&#40;&#41; // escaneamos MsgInfo&#40; "After" &#41; return nil [/code:2dem474y]Cuando ejecuto este código, funciona bien, es decir, muestra el mensaje 'Antes', lueso escanea y finalmente, muestra 'Después'Lo curioso es que si ejecuto esta misma secuencia asignada a un ACTION de un botón en mi diálogo de recurso, se produce la siguiente ejecución:Muestra 'Antes', escanea y luego no muestra el mensaje 'Después'. Pero mi aplicación no se bloquea. sigue funcionando y puedes pulsar otros botones y salir del dialogo.Al principio pensé que se trataba de la librería en sí, pero probé con otra librería muy similar que tambien usa activex y los resultados fueron los mismos.En fín, que parece que hay algo que le molesta cuando ejecuto desde diálogo y no sé que hacer. <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
problemas al Controlar el escaner via ActiveX ocx
Javier,Mira a ver si te sirve la libreria que hizo Rafa (thefull):<!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/utilities/tscan32.zip">www.fivetechsoft.com/files/utilities/tscan32.zip</a><!-- w -->
problemas al Controlar el escaner via ActiveX ocx
Experimenta utilizar lo siguiente:[code:nxn9jr4d] Local oErr &#46;&#46;&#46; MsgInfo&#40; "Before" &#41; TRY oScan&#58;Acquire&#40;&#41; // escaneamos CATCH oErr MsgAlert&#40; "Error&#58; " + oErr&#58;Operation + " -> " + oErr&#58;Description &#41; END MsgInfo&#40; "After" &#41; [/code:nxn9jr4d]
problemas al Controlar el escaner via ActiveX ocx
Javier:Yo utilizo csxImage y va muy bien. El truco está en abrirlo como ActiveX. Más o menos así:[code:mrvcrtek] oImgBox &#58;= TActiveX&#40;&#41;&#58;New&#40;Self, "csXImageTrial&#46;ImageBox"&#41; //--- Y a partir de ahora, utiliza Do&#40;&#41;, SetProp&#40;&#41; y GetProp&#40;&#41;&#46; Así&#58; oImgBox&#58;Do&#40;"SelectTwainDevice"&#41; oImgBox&#58;SetProp&#40;"WaitForAcquire", &#46;t&#46; &#41; oImgBox&#58;SetProp&#40;"UseTwainInterface", &#46;F&#46;&#41; // Evitamos que llame al software del escaner&#46; oImgBox&#58;Do&#40;"Acquire"&#41; etc etc&#46;&#46;&#46; [/code:mrvcrtek]Antonio me ayudó mucho porque TActiveX tenía unas incompatibilidades que al final pudimos resolver (bueno; casi todo lo hizo él). Esto fue a finales de mayo, así que para que te funcione necesitarás la versión FWH 8.07 o posteriorPor cierto, la gente de csxImage también colaboró mucho, incluyendo unas funciones para manejo de colores, ya que con los datos OLE_COLOR originales no hubo forma de que funcionase. Espero que esto ayude. Feliz Navidad!Rafael
problemas al Controlar el escaner via ActiveX ocx
Aclarar que las incompatibilidades que se resolvieron fueron con el manejo de eventos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
problemas al Controlar el escaner via ActiveX ocx
Antonio, TScan32 fué la primera opción que estudié. Pero se me queda corto para lo que necesito.RenOamS, buen intento y gracias. Pero las pruebas no han funcionado.Rafa, como bien dices, necesitaré la versión FWH 8.07.En fin, gracias por vuestros consejos. Os deseo una feliz noche buena. Y no os paseis con la cominda. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
problemas al compilar ejemplos TDolphin
Hola Daniel, gracias por la pronta respuesta tendre en cuenta tus sugerencias. Saludos desde Argentina Marcelo
problemas al compilar ejemplos TDolphin
Hola Daniel, Perdona que te de la lata, pero no consigo compilar los ejemplos: Pongo bldcon testping y me salta: [code=fw:24i5zsvr]<div class="fw" id="{CB}" style="font-family: monospace;"># -----------------------------------------------------------------------<br /># Building sample testping.prg EMBEDDED : <span style="color: #000000;">no</span><br />#<br /># C COMPILER &nbsp; &nbsp;:<span style="color: #000000;">BCC</span><br /># PRG COMPILER &nbsp;:<span style="color: #000000;">HARBOUR</span><br /># -----------------------------------------------------------------------<br /><br />Compiling testping.prg<br />Compiling testping.c<br />Linking testping.obj<br />Turbo Incremental Link <span style="color: #000000;">5.69</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2005</span> Borland<br />testping.exe<br /><br />Unrecoverable error <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error:<br /><br />&nbsp; &nbsp; <span style="color: #000000;">Exception</span> Code:<span style="color: #000000;">C0000005</span><br />&nbsp; &nbsp; Exception Address:0042D747<br />&nbsp; &nbsp; EAX:00246D2C &nbsp;EBX:<span style="color: #000000;">00000000</span> &nbsp;ECX:<span style="color: #000000;">00000006</span> &nbsp;EDX:002459F8<br />&nbsp; &nbsp; ESI:<span style="color: #000000;">00000000</span> &nbsp;EDI:00246D2C &nbsp;EBP:0018F9D4<br />&nbsp; &nbsp; CS:<span style="color: #000000;">EIP</span>:<span style="color: #000000;">0023</span>:0042D747 &nbsp;SS:<span style="color: #000000;">ESP</span>:002B:0018F9C4<br />&nbsp; &nbsp; DS:002B &nbsp;ES:002B &nbsp;FS:<span style="color: #000000;">0053</span> &nbsp;GS:002B<br />&nbsp; &nbsp; Flags:<span style="color: #000000;">00010246</span><br />&nbsp; &nbsp; CS:<span style="color: #000000;">EIP</span>: <span style="color: #000000;">F3</span> A5 5E <span style="color: #000000;">81</span> <span style="color: #000000;">26</span> FF FF FB FF 8B <span style="color: #000000;">03</span> A9 <span style="color: #000000;">05</span> B4 <span style="color: #000000;">00</span> <span style="color: #000000;">00</span><br />&nbsp; &nbsp; SS:<span style="color: #000000;">ESP</span>: 00246D2C 00000CEA 01EA1DB8 <span style="color: #000000;">00000000</span> 0018F9E4 004158E0 00246D2C <span style="color: #000000;">00000</span><br /><span style="color: #000000;">000</span> 0018F9F8 <span style="color: #000000;">00415397</span> <span style="color: #000000;">00000000</span> 01EA1DB8 <span style="color: #000000;">00000000</span> 0018FA28 <span style="color: #000000;">00402617</span> <span style="color: #000000;">00000000</span><br /><br />&nbsp; &nbsp; C stack:<br />&nbsp; &nbsp; <span style="color: #000000;">EIP</span>: &nbsp; &nbsp; <span style="color: #000000;">EBP</span>: &nbsp; &nbsp; &nbsp; <span style="color: #000000;">Frame</span>: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br />&nbsp; &nbsp; 0042D747 0018F9D4 &nbsp; 0018F9E4 004158E0 00246D2C <span style="color: #000000;">00000000</span><br />&nbsp; &nbsp; 004158E0 0018F9E4 &nbsp; 0018F9F8 <span style="color: #000000;">00415397</span> <span style="color: #000000;">00000000</span> 01EA1DB8 <span style="color: #000000;">00000000</span><br />&nbsp; &nbsp; <span style="color: #000000;">00415397</span> 0018F9F8 &nbsp; 0018FA28 <span style="color: #000000;">00402617</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 00246CEC 00000CEA <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span> <span style="color: #000000;">00000000</span> 004C5B56 <span style="color: #000000;">00000000</span><br />&nbsp; &nbsp; <span style="color: #000000;">00402617</span> 0018FA28 &nbsp; 0018FA44 00414FE0 <span style="color: #000000;">00000021</span> <span style="color: #000000;">00000000</span> 00248D74 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span><br />&nbsp; &nbsp; 00414FE0 0018FA44 &nbsp; 0018FB50 0040F0EF <span style="color: #000000;">00000006</span> 004C4B73 <span style="color: #000000;">00000000</span> 004C3100 <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span> 004DDBF8 0027C46C 004DDBF8<br />&nbsp; &nbsp; 0040F0EF 0018FB50 &nbsp; 0018FB60 00401B74 004C5ADB 004C2A90<br />&nbsp; &nbsp; 00401B74 0018FB60 &nbsp; 0018FB80 0041519D 004DD6A8 <span style="color: #000000;">00000014</span> <span style="color: #000000;">00000000</span> 00248D74 <span style="color: #000000;">00</span><br />3E0004 <span style="color: #000000;">00000361</span><br />&nbsp; &nbsp; 0041519D 0018FB80 &nbsp; 0018FC8C 0040F22C <span style="color: #000000;">00000000</span> 004B930F <span style="color: #000000;">00000001</span> 004B9164 <span style="color: #000000;">00</span><br />4DD6A8 <span style="color: #000000;">00000048</span> 000003B0 004DDBD4<br />&nbsp; &nbsp; 0040F22C 0018FC8C &nbsp; 0018FC9C 00401A6C 004C4A9E 004C2A90<br />&nbsp; &nbsp; 00401A6C 0018FC9C &nbsp; 0018FCBC 0041519D 004DD6A8 <span style="color: #000000;">00000004</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">030004</span> 0000014D<br />&nbsp; &nbsp; 0041519D 0018FCBC &nbsp; 0018FDC8 0040F22C <span style="color: #000000;">00000009</span> 004B91B0 <span style="color: #000000;">00000000</span> 004DD6A8 <span style="color: #000000;">00</span><br />4D8304 004DDC0C 004DDC04 0024A4A0<br />&nbsp; &nbsp; 0040F22C 0018FDC8 &nbsp; 0018FDD8 0040131D 004B9215 004B90A4<br />&nbsp; &nbsp; 0040131D 0018FDD8 &nbsp; 0018FDF4 00414FE0 <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br />00001E<br />&nbsp; &nbsp; 00414FE0 0018FDF4 &nbsp; 0018FF00 0040F172 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00240164</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">000007</span> <span style="color: #000000;">00000005</span> 004DDC08 <span style="color: #000000;">00275138</span><br />&nbsp; &nbsp; 0040F172 0018FF00 &nbsp; 0018FF10 <span style="color: #000000;">00401305</span> 004B9198 004B90A4<br />&nbsp; &nbsp; <span style="color: #000000;">00401305</span> 0018FF10 &nbsp; 0018FF2C 00414FE0 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br />00000C<br />&nbsp; &nbsp; 00414FE0 0018FF2C &nbsp; 0018FF48 0040E44E <span style="color: #000000;">00240000</span> <span style="color: #000000;">00000000</span> 004B9034 7EFDE000 <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span><br />&nbsp; &nbsp; 0040E44E 0018FF48 &nbsp; 0018FF54 0043B13E <span style="color: #000000;">00000001</span><br />&nbsp; &nbsp; 0043B13E 0018FF54 &nbsp; 0018FF80 004B610A <span style="color: #000000;">00000001</span> <span style="color: #000000;">00240160</span> 00240A08 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span> 7EFDE000 <span style="color: #000000;">00000000</span> 0018FFC4<br />&nbsp; &nbsp; 004B610A 0018FF80 &nbsp; 0018FF94 <span style="color: #000000;">00000000</span> 004B9034 75A0339A 7EFDE000<br /><br /><br />Modules:<br />0x00400000 0x000EE000 z:\soft\dolphin\svn\tdolphin\samples\t<br />estping.exe<br />0x77920000 0x00180000 C:\Windows\SysWOW64\ntdll.dll<br />0x759F0000 0x00110000 C:\Windows\syswow64\kernel32.dll<br />0x759A0000 0x00046000 C:\Windows\syswow64\KERNELBASE.dll<br />0x70DD0000 0x002CA000 z:\soft\dolphin\svn\tdolphin\samples\L<br />IBMYSQL.DLL<br />0x75330000 0x00100000 C:\Windows\syswow64\USER32.dll<br />0x75430000 0x00090000 C:\Windows\syswow64\GDI32.dll<br />0x75320000 0x0000A000 C:\Windows\syswow64\LPK.dll<br />0x76E80000 0x0009D000 C:\Windows\syswow64\USP10.dll<br />0x75510000 0x000AC000 C:\Windows\syswow64\msvcrt.dll<br />0x75670000 0x000A0000 C:\Windows\syswow64\ADVAPI32.dll<br />0x77040000 0x00019000 C:\Windows\SysWOW64\sechost.dll<br />0x75060000 0x000F0000 C:\Windows\syswow64\RPCRT4.dll<br />0x75000000 0x00060000 C:\Windows\syswow64\SspiCli.dll<br />0x74FF0000 0x0000C000 C:\Windows\syswow64\CRYPTBASE.dll<br />0x754D0000 0x00035000 C:\Windows\syswow64\WS2_32.dll<br />0x75710000 0x00006000 C:\Windows\syswow64\NSI.dll<br />0x74B00000 0x00051000 C:\Windows\system32\WINSPOOL.DRV<br />0x76D20000 0x0015C000 C:\Windows\syswow64\OLE32.DLL<br />0x75C40000 0x0008F000 C:\Windows\syswow64\OLEAUT32.DLL<br />0x755F0000 0x00060000 C:\Windows\system32\IMM32.DLL<br />0x75B70000 0x000CC000 C:\Windows\syswow64\MSCTF.dll<br />0x72620000 0x00010000 C:\Windows\system32\NLAapi.dll<br />0x72610000 0x00010000 C:\Windows\system32\napinsp.dll<br />0x725F0000 0x00012000 C:\Windows\system32\pnrpnsp.dll<br />0x725C0000 0x00025000 C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Bonjour\mdnsNSP.dll<br />0x72860000 0x0001C000 C:\Windows\system32\Iphlpapi.DLL<br />0x72850000 0x00007000 C:\Windows\system32\WINNSI.DLL<br />0x72890000 0x0003C000 C:\Windows\System32\mswsock.dll<br />0x72700000 0x00044000 C:\Windows\system32\DNSAPI.dll<br />0x725B0000 0x00008000 C:\Windows\System32\winrnr.dll<br />0x72550000 0x00006000 C:\Windows\system32\rasadhlp.dll<br /><br />Called <span style="color: #0000ff;">from</span> MYSQLCONNECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> TDOLPHINSRV:<span style="color: #000000;">CONNECT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">865</span><span style="color: #000000;">&#41;</span> in .\source\prg\tdolpsrv.prg<br />Called <span style="color: #0000ff;">from</span> TDOLPHINSRV:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">333</span><span style="color: #000000;">&#41;</span> in .\source\prg\tdolpsrv.prg<br />Called <span style="color: #0000ff;">from</span> CONNECTTO<span style="color: #000000;">&#40;</span><span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span> in testping.prg<br />Called <span style="color: #0000ff;">from</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span> in testping.prg<br /><br />Unrecoverable error <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error:<br /><br />&nbsp; &nbsp; <span style="color: #000000;">Exception</span> Code:<span style="color: #000000;">C0000005</span><br />&nbsp; &nbsp; Exception Address:0042D747<br />&nbsp; &nbsp; EAX:00246D2C &nbsp;EBX:<span style="color: #000000;">00000000</span> &nbsp;ECX:<span style="color: #000000;">00000006</span> &nbsp;EDX:002459F8<br />&nbsp; &nbsp; ESI:<span style="color: #000000;">00000000</span> &nbsp;EDI:00246D2C &nbsp;EBP:0018F9D4<br />&nbsp; &nbsp; CS:<span style="color: #000000;">EIP</span>:<span style="color: #000000;">0023</span>:0042D747 &nbsp;SS:<span style="color: #000000;">ESP</span>:002B:0018F9C4<br />&nbsp; &nbsp; DS:002B &nbsp;ES:002B &nbsp;FS:<span style="color: #000000;">0053</span> &nbsp;GS:002B<br />&nbsp; &nbsp; Flags:<span style="color: #000000;">00010246</span><br />&nbsp; &nbsp; CS:<span style="color: #000000;">EIP</span>: <span style="color: #000000;">F3</span> A5 5E <span style="color: #000000;">81</span> <span style="color: #000000;">26</span> FF FF FB FF 8B <span style="color: #000000;">03</span> A9 <span style="color: #000000;">05</span> B4 <span style="color: #000000;">00</span> <span style="color: #000000;">00</span><br />&nbsp; &nbsp; SS:<span style="color: #000000;">ESP</span>: 00246D2C 00000CEA 01EA1DB8 <span style="color: #000000;">00000000</span> 0018F9E4 004158E0 00246D2C <span style="color: #000000;">00000</span><br /><span style="color: #000000;">000</span> 0018F9F8 <span style="color: #000000;">00415397</span> <span style="color: #000000;">00000000</span> 01EA1DB8 <span style="color: #000000;">00000000</span> 0018FA28 <span style="color: #000000;">00402617</span> <span style="color: #000000;">00000000</span><br /><br />&nbsp; &nbsp; C stack:<br />&nbsp; &nbsp; <span style="color: #000000;">EIP</span>: &nbsp; &nbsp; <span style="color: #000000;">EBP</span>: &nbsp; &nbsp; &nbsp; <span style="color: #000000;">Frame</span>: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br />&nbsp; &nbsp; 0042D747 0018F9D4 &nbsp; 0018F9E4 004158E0 00246D2C <span style="color: #000000;">00000000</span><br />&nbsp; &nbsp; 004158E0 0018F9E4 &nbsp; 0018F9F8 <span style="color: #000000;">00415397</span> <span style="color: #000000;">00000000</span> 01EA1DB8 <span style="color: #000000;">00000000</span><br />&nbsp; &nbsp; <span style="color: #000000;">00415397</span> 0018F9F8 &nbsp; 0018FA28 <span style="color: #000000;">00402617</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 00246CEC 00000CEA <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span> <span style="color: #000000;">00000000</span> 004C5B56 <span style="color: #000000;">00000000</span><br />&nbsp; &nbsp; <span style="color: #000000;">00402617</span> 0018FA28 &nbsp; 0018FA44 00414FE0 <span style="color: #000000;">00000021</span> <span style="color: #000000;">00000000</span> 00248D74 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span><br />&nbsp; &nbsp; 00414FE0 0018FA44 &nbsp; 0018FB50 0040F0EF <span style="color: #000000;">00000006</span> 004C4B73 <span style="color: #000000;">00000000</span> 004C3100 <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span> 004DDBF8 0027C46C 004DDBF8<br />&nbsp; &nbsp; 0040F0EF 0018FB50 &nbsp; 0018FB60 00401B74 004C5ADB 004C2A90<br />&nbsp; &nbsp; 00401B74 0018FB60 &nbsp; 0018FB80 0041519D 004DD6A8 <span style="color: #000000;">00000014</span> <span style="color: #000000;">00000000</span> 00248D74 <span style="color: #000000;">00</span><br />3E0004 <span style="color: #000000;">00000361</span><br />&nbsp; &nbsp; 0041519D 0018FB80 &nbsp; 0018FC8C 0040F22C <span style="color: #000000;">00000000</span> 004B930F <span style="color: #000000;">00000001</span> 004B9164 <span style="color: #000000;">00</span><br />4DD6A8 <span style="color: #000000;">00000048</span> 000003B0 004DDBD4<br />&nbsp; &nbsp; 0040F22C 0018FC8C &nbsp; 0018FC9C 00401A6C 004C4A9E 004C2A90<br />&nbsp; &nbsp; 00401A6C 0018FC9C &nbsp; 0018FCBC 0041519D 004DD6A8 <span style="color: #000000;">00000004</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">030004</span> 0000014D<br />&nbsp; &nbsp; 0041519D 0018FCBC &nbsp; 0018FDC8 0040F22C <span style="color: #000000;">00000009</span> 004B91B0 <span style="color: #000000;">00000000</span> 004DD6A8 <span style="color: #000000;">00</span><br />4D8304 004DDC0C 004DDC04 0024A4A0<br />&nbsp; &nbsp; 0040F22C 0018FDC8 &nbsp; 0018FDD8 0040131D 004B9215 004B90A4<br />&nbsp; &nbsp; 0040131D 0018FDD8 &nbsp; 0018FDF4 00414FE0 <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br />00001E<br />&nbsp; &nbsp; 00414FE0 0018FDF4 &nbsp; 0018FF00 0040F172 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00240164</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">000007</span> <span style="color: #000000;">00000005</span> 004DDC08 <span style="color: #000000;">00275138</span><br />&nbsp; &nbsp; 0040F172 0018FF00 &nbsp; 0018FF10 <span style="color: #000000;">00401305</span> 004B9198 004B90A4<br />&nbsp; &nbsp; <span style="color: #000000;">00401305</span> 0018FF10 &nbsp; 0018FF2C 00414FE0 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br />00000C<br />&nbsp; &nbsp; 00414FE0 0018FF2C &nbsp; 0018FF48 0040E44E <span style="color: #000000;">00240000</span> <span style="color: #000000;">00000000</span> 004B9034 7EFDE000 <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span><br />&nbsp; &nbsp; 0040E44E 0018FF48 &nbsp; 0018FF54 0043B13E <span style="color: #000000;">00000001</span><br />&nbsp; &nbsp; 0043B13E 0018FF54 &nbsp; 0018FF80 004B610A <span style="color: #000000;">00000001</span> <span style="color: #000000;">00240160</span> 00240A08 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00</span><br /><span style="color: #000000;">000000</span> 7EFDE000 <span style="color: #000000;">00000000</span> 0018FFC4<br />&nbsp; &nbsp; 004B610A 0018FF80 &nbsp; 0018FF94 <span style="color: #000000;">00000000</span> 004B9034 75A0339A 7EFDE000<br /><br /><br />Modules:<br />0x00400000 0x000EE000 z:\soft\dolphin\svn\tdolphin\samples\t<br />estping.exe<br />0x77920000 0x00180000 C:\Windows\SysWOW64\ntdll.dll<br />0x759F0000 0x00110000 C:\Windows\syswow64\kernel32.dll<br />0x759A0000 0x00046000 C:\Windows\syswow64\KERNELBASE.dll<br />0x70DD0000 0x002CA000 z:\soft\dolphin\svn\tdolphin\samples\L<br />IBMYSQL.DLL<br />0x75330000 0x00100000 C:\Windows\syswow64\USER32.dll<br />0x75430000 0x00090000 C:\Windows\syswow64\GDI32.dll<br />0x75320000 0x0000A000 C:\Windows\syswow64\LPK.dll<br />0x76E80000 0x0009D000 C:\Windows\syswow64\USP10.dll<br />0x75510000 0x000AC000 C:\Windows\syswow64\msvcrt.dll<br />0x75670000 0x000A0000 C:\Windows\syswow64\ADVAPI32.dll<br />0x77040000 0x00019000 C:\Windows\SysWOW64\sechost.dll<br />0x75060000 0x000F0000 C:\Windows\syswow64\RPCRT4.dll<br />0x75000000 0x00060000 C:\Windows\syswow64\SspiCli.dll<br />0x74FF0000 0x0000C000 C:\Windows\syswow64\CRYPTBASE.dll<br />0x754D0000 0x00035000 C:\Windows\syswow64\WS2_32.dll<br />0x75710000 0x00006000 C:\Windows\syswow64\NSI.dll<br />0x74B00000 0x00051000 C:\Windows\system32\WINSPOOL.DRV<br />0x76D20000 0x0015C000 C:\Windows\syswow64\OLE32.DLL<br />0x75C40000 0x0008F000 C:\Windows\syswow64\OLEAUT32.DLL<br />0x755F0000 0x00060000 C:\Windows\system32\IMM32.DLL<br />0x75B70000 0x000CC000 C:\Windows\syswow64\MSCTF.dll<br />0x72620000 0x00010000 C:\Windows\system32\NLAapi.dll<br />0x72610000 0x00010000 C:\Windows\system32\napinsp.dll<br />0x725F0000 0x00012000 C:\Windows\system32\pnrpnsp.dll<br />0x725C0000 0x00025000 C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Bonjour\mdnsNSP.dll<br />0x72860000 0x0001C000 C:\Windows\system32\Iphlpapi.DLL<br />0x72850000 0x00007000 C:\Windows\system32\WINNSI.DLL<br />0x72890000 0x0003C000 C:\Windows\System32\mswsock.dll<br />0x72700000 0x00044000 C:\Windows\system32\DNSAPI.dll<br />0x725B0000 0x00008000 C:\Windows\System32\winrnr.dll<br />0x72550000 0x00006000 C:\Windows\system32\rasadhlp.dll<br /><br />Called <span style="color: #0000ff;">from</span> MYSQLCONNECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> TDOLPHINSRV:<span style="color: #000000;">CONNECT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">865</span><span style="color: #000000;">&#41;</span> in .\source\prg\tdolpsrv.prg<br />Called <span style="color: #0000ff;">from</span> TDOLPHINSRV:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">333</span><span style="color: #000000;">&#41;</span> in .\source\prg\tdolpsrv.prg<br />Called <span style="color: #0000ff;">from</span> CONNECTTO<span style="color: #000000;">&#40;</span><span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span> in testping.prg<br />Called <span style="color: #0000ff;">from</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span> in testping.prg<br />win-make: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>testping<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">-1073741819</span><br /><br />z:\soft\dolphin\svn\tdolphin\samples></div>[/code:24i5zsvr] Si pongo bldfw testfw1 [url=http&#58;//imageshack&#46;us/photo/my-images/252/daniel1&#46;png/:24i5zsvr][img:24i5zsvr]http&#58;//img252&#46;imageshack&#46;us/img252/8360/daniel1&#46;th&#46;png[/img:24i5zsvr][/url:24i5zsvr] Uploaded with [url=http&#58;//imageshack&#46;us:24i5zsvr]ImageShack.us[/url:24i5zsvr] Sólo funciona bldcon testemb1 yes ¿Qué sucede?. Muchas gracias y perdona pero no hay forma.
problemas al compilar ejemplos TDolphin
Hola al parecer te falta libmysql.dll... deberia estr en la carpeta samples sino buscala en la carpeta DLL
problemas al compilar ejemplos TDolphin
Daniel, Está en la carpeta samples. Hice una instalación limpia con svn co <!-- m --><a class="postlink" href="http://www.sitasoft.net/tdolphin">http://www.sitasoft.net/tdolphin</a><!-- m --> ¿Has probado por favor a montar tdolphin en un equipo limpio o una máquina virtual/virtualbox/vmware?.
problemas al compilar ejemplos TDolphin
Lucas... si habia un bug colado en una de las revisiones.... por favor intenta de nuevo
problemas al compilar ejemplos TDolphin
Daniel, Muchas gracias, ya se ejecutan. Pero al darle a testfw1.exe: [code=fw:32jea9yi]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; Error description: <span style="color: #000000;">Error</span> FiveWin/<span style="color: #000000;">3</span> &nbsp;Cannot create <span style="color: #0000ff;">Dialog</span> Box: <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Resource</span>: <span style="color: #000000;">DATAS</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => CREATEDLGERROR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">531</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">269</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testfw1</span>.prg => DATABROWSE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">158</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testfw1</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">461</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1042</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3160</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">989</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testfw1</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span></div>[/code:32jea9yi]
problemas al compilar ejemplos TDolphin
Y testfw2 no muestra el browse, se queda la pantalla en blanco. Tampoco sa_vs_up compila.
problemas al compilar ejemplos TDolphin
Hola Lucas, Daniel, yo tambien tengo el mismo error al querer compilar esos ejemplos, en cambio el del testping funciona bien. Saludos.
problemas al compilar ejemplos TDolphin
Saludos Arreglado testfw1.prg, faltaba el RC (continuo probando) TDolphinn es un proyecto libre para el uso de todos, sientance libres de hacer correciones o de sugerir mejoras, puede que algunos ejemplos fallen (por falta de pruebas) por cambios generados a la clase despues de haberse construido el ejemplo, pero la esencia de la clase seguira siendo la misma... Todos podemos contribuir en este proyecto, si encuentran un problemas pueden tratar de ofrecer una solucion al mismo, Gracias
problemas al compilar ejemplos TDolphin
Saludos Arreglado testfw2.prg faltaba [b:3qqowja1]"OF oDlg"[/b:3qqowja1] en la creacion del xbrowse (en versiones recientes de fivewin es obligatorio incluirlo, cuando se construyo el ejemplo no era necesario)
problemas al compilar ejemplos TDolphin
Saludos Arreglado sa_vs_up.prg.... Arreglado Testfile.prg Arreglado Testpag.prg Arreglado Testsk2.prg Arreglado testvar.prg mismo problema del post anterior
problemas al compilar ejemplos TDolphin
Sigan probando ejemplos reporten los que fallen y si tienen alguna solucion en alguno tambien pueden anunciarla, Gracias
problemas al compilar ejemplos TDolphin
Daniel, Sigue sir ir bajo Harbour 3.1 y BCC 5.82: testfw1.prg [code=fw:3cv3z5wu]<div class="fw" id="{CB}" style="font-family: monospace;">Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'testfw1.c'</span>... Done.<br />Borland C++ <span style="color: #000000;">5.82</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2005</span> Borland<br />testfw1.c:<br /><span style="color: #000000;">Borland</span> <span style="color: #0000ff;">Resource</span> Compiler &nbsp;Version <span style="color: #000000;">5.40</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1990</span>, <span style="color: #000000;">1999</span> Inprise Corporation. &nbsp;All rights reserved.<br /><br />Error prsht.h <span style="color: #000000;">1081</span> <span style="color: #000000;">1</span>: <span style="color: #ff0000;">'#endif'</span> before <span style="color: #ff0000;">'#if'</span><br />* Linking errors *<br />&nbsp;</div>[/code:3cv3z5wu] testfw2.prg [code=fw:3cv3z5wu]<div class="fw" id="{CB}" style="font-family: monospace;">testfw2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">46</span><span style="color: #000000;">&#41;</span> Error E0030 &nbsp;Syntax error <span style="color: #ff0000;">"syntax error at '<'"</span><br />testfw2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">49</span><span style="color: #000000;">&#41;</span> Error E0030 &nbsp;Syntax error <span style="color: #ff0000;">"syntax error at '=='"</span><br />testfw2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">52</span><span style="color: #000000;">&#41;</span> Error E0030 &nbsp;Syntax error <span style="color: #ff0000;">"syntax error at '>'"</span></div>[/code:3cv3z5wu] En testpag no van bien las posiciones, pongo LAst y me val al 48888 cuando quedan más registros todavía. Muchísimas gracias. Sigo insistiendo en un seminario de pago, así tendríamos unos ejemplos más completos y un aprendizaje recibiendo tu el correspondiente dinero por tu tiempo y esfuerzo. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
problemas al compilar ejemplos TDolphin
[quote="lucasdebeltran":2v8onasz]testfw1.prg CODE: SELECT ALL  EXPAND VIEW Generating C source output to 'testfw1.c'... Done. Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland testfw1.c: Borland Resource Compiler  Version 5.40 Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved. Error prsht.h 1081 1: '#endif' before '#if' * Linking errors *   [/quote:2v8onasz] esto es un error de borland solucion 1: [url:2v8onasz]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=99389#p99389[/url:2v8onasz] solucion 2: [url:2v8onasz]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=114502#p114502[/url:2v8onasz] [quote="lucasdebeltran":2v8onasz]Daniel, testfw2.prg [code=fw:2v8onasz]<div class="fw" id="{CB}" style="font-family: monospace;">testfw2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">46</span><span style="color: #000000;">&#41;</span> Error E0030  Syntax error <span style="color: #ff0000;">"syntax error at '<'"</span><br />testfw2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">49</span><span style="color: #000000;">&#41;</span> Error E0030  Syntax error <span style="color: #ff0000;">"syntax error at '=='"</span><br />testfw2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">52</span><span style="color: #000000;">&#41;</span> Error E0030  Syntax error <span style="color: #ff0000;">"syntax error at '>'"</span></div>[/code:2v8onasz] [/quote:2v8onasz] Estas usando el ultimo codigo del svn? [url:2v8onasz]http&#58;//www&#46;sitasoft&#46;net/dolphindevel/filedetails&#46;php?repname=TDolphin&path=%2Fsamples%2Ftestfw2&#46;prg&rev=251[/url:2v8onasz] ese el el codigo de testfw2 y en las lineas que genera el error no hay nada parecido al error que arroja [quote="lucasdebeltran":2v8onasz]En testpag no van bien las posiciones, pongo LAst y me val al 48888 cuando quedan más registros todavía.[/quote:2v8onasz] la accion del boton LAST es que va a la ultima pagina de la paginacion, no al ultimo registro... [quote="lucasdebeltran":2v8onasz] Sigo insistiendo en un seminario de pago, así tendríamos unos ejemplos más completos y un aprendizaje recibiendo tu el correspondiente dinero por tu tiempo y esfuerzo. [/quote:2v8onasz] No creo que la clase como tal necesite un curso, es bastante intuitiva y facil de entender el codigo, creo que lo que necesitamos es gente que tambien dedique algo de tiempo a documentarla, yo lamentablemente carezco de esa capacidad, por eso nunca lo he podido hacer <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
problemas al compilar ejemplos TDolphin
Daniel, Muchas gracias por todo. Ya funcionan. Lo de testfw2.prg es curioso, en el prg había esto: [code=fw:p3gysyn8]<div class="fw" id="{CB}" style="font-family: monospace;"><<<<<<< .mine<br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw<br /><br />=======<br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<br />>>>>>>> .r252<br /><br />&nbsp;</div>[/code:p3gysyn8] Y he forzado un svc up pero seguía. Arreglado. Me gustaría preguntarte si tienes un ejemplo con REPORT. Y otro con FastReport. Muchas gracias nuevamente. PD. ¿No has pensado en crear un foro propio para TDolphin?.
problemas al compilar ejemplos TDolphin
Que bien que ya funcionen pero como dolphin no depende de ningun GUI, algunas veces es dificil adaptarse a lso cambios de cada uno [quote="lucasdebeltran":jvyxzqn0]PD. ¿No has pensado en crear un foro propio para TDolphin?.[/quote:jvyxzqn0] existe [url:jvyxzqn0]http&#58;//www&#46;gtxbase&#46;org/forums/index&#46;php[/url:jvyxzqn0], pero no se usa, y como la mayoria de los usuarios son de fivewin simplemente preguntan por aca sin ningun tipo de restricciones
problemas al compilar ejemplos TDolphin
Daniel, Por favor, en ningún caso he criticado el producto. Encima es opensource y tu soporte es excelente. Yo te animo a que lo conviertas en producto de pago. Por favor, cuando tengas un rato dime si hay un ejemplo para la clase TReport() de Fivewin y para Fast Report. salu2
problemas al compilar ejemplos TDolphin
Hola para fastreport puedes ir viendo este hilo, en este foro casi siempre se consiguen las respuestas, espero te ayude [url:3dl8bmel]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=117777#p117777[/url:3dl8bmel] para report, seguro alguien tiene algo ya funcionando... esperemos a ver que dicen, sino se hacemos el ejemplo... [quote="lucasdebeltran":3dl8bmel]Por favor, en ningún caso he criticado el producto.[/quote:3dl8bmel] No se que comente para que pensaras de esa forma? <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
problemas al compilar ejemplos TDolphin
Espero que les sirva, es una funcion generica de report, oAlias es el objeto query ej: oEmpleados := oServer:Query("Select * from Empleados") Sql_report(oEmpleados,"Reporte de Empleados") .... [code=fw:1qc19pdk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Sql_Reports<span style="color: #000000;">&#40;</span>oAlias, cReport<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oRpt<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n,oFont1,oFont2<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cReport := <span style="color: #ff0000;">"Reporte"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"COURIER NEW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"COURIER NEW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span> BOLD<br /><br />&nbsp; &nbsp;REPORT oRpt <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Reporte: "</span> + cReport ;<br />&nbsp; &nbsp; &nbsp; HEADER <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> + <span style="color: #ff0000;">", Hora: "</span> + Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; FOOTER <span style="color: #ff0000;">"Pagina: "</span> + Str<span style="color: #000000;">&#40;</span> oRpt:<span style="color: #000000;">nPage</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont1,oFont2 ;<br />&nbsp; &nbsp; &nbsp; CAPTION <span style="color: #ff0000;">"Sistema de Informes"</span> ;<br />&nbsp; &nbsp; &nbsp; PREVIEW<br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oRpt <span style="color: #000000;">&#41;</span> .or. oRpt:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">hDC</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; oRpt:<span style="color: #000000;">margin</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRpt:<span style="color: #000000;">margin</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> oAlias:<span style="color: #000000;">FCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRpt:<span style="color: #000000;">AddColumn</span><span style="color: #000000;">&#40;</span> TrColumn<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: #000000;">&#123;</span> sFInfo1<span style="color: #000000;">&#40;</span> oAlias, n &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> sFInfo2<span style="color: #000000;">&#40;</span> oAlias, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,, iif<span style="color: #000000;">&#40;</span>valtype<span style="color: #000000;">&#40;</span> sFInfo2<span style="color: #000000;">&#40;</span> oAlias, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"D"</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"@D"</span><span style="color: #000000;">&#125;</span>,iif<span style="color: #000000;">&#40;</span>valtype<span style="color: #000000;">&#40;</span> sFInfo2<span style="color: #000000;">&#40;</span> oAlias, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"@Z 999,999,999"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"@X"</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ,,,,,,,, oRpt <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;ENDREPORT<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oRpt:<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">&#123;</span>|| oAlias:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> REPORT oRpt <span style="color: #00C800;">while</span> ! oAlias:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oAlias:<span style="color: #000000;">Gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> sFInfo1<span style="color: #000000;">&#40;</span> oAlias, n <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> || upper<span style="color: #000000;">&#40;</span> oAlias:<span style="color: #000000;">FieldName</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> sFInfo2<span style="color: #000000;">&#40;</span> oAlias, n <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> || &nbsp;iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span> oAlias:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">" "</span>,oAlias:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:1qc19pdk]