topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
cómo comunicarse con los usuarios de FiveWin | aun no se soluciono?
gracias. |
cómo comunicarse con los usuarios de FiveWin | Como administrador, yo los veo.
No se que opción habrá que modificar en phpbb para que lo podais ver todos <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
cómo comunicarse con los usuarios de FiveWin | lo instalo y veo. |
cómo comunicarse con los usuarios de FiveWin | hola,
NO se ven los correos de los usuarios...
Salu2, Ariel. |
cómo comunicarse con los usuarios de FiveWin | [quote="Ariel":1ul4t3r1]hola,
NO se ven los correos de los usuarios...
Salu2, Ariel.[/quote:1ul4t3r1]
Viewing profile - Ariel
CONTACT ARIEL
MSNM/WLM:Send MSNM/WLM message <- click aqui.
Gracias, salu2. |
cómo comunicarse con los usuarios de FiveWin | Karina,
en el mio si se ve el hotmail...pero en el tuyo no hay forma de ver tu email.
Salu2,Ariel. |
cómo comunicarse con los usuarios de FiveWin | [quote="Ariel":1gco6zyb]Karina,
en el mio si se ve el hotmail...pero en el tuyo no hay forma de ver tu email.
Salu2,Ariel.[/quote:1gco6zyb]
Ariel, Exactamente.
Por eso la pregunta para el Maestro Antonio.
Algunos correos electrónicos están disponibles, otros no.
Gracias, Salu2 |
cómo comunicarse con los usuarios de FiveWin | Depende de la configuración que tenga cada usuario. Tu no ves el correo que los usuarios han marcado como NO.
Para marcar SI tenemos que hacer lo siguiente:
Panel de Control de Usuario + Preferencias Foro y marcar "Los usuarios pueden contactarme por email. |
cómo comunicarse con los usuarios de FiveWin | Gracias Manuel, mi perfil estaba todo como: SI, YES.
Salu2. |
cómo crear un botón con btnbmp? | amigos, ¿cómo puedo hacer un botón como éste se muestra a continuación con btnbmp?
al pasar el ratón sobre ella cambia de color a un degradado de blanco.
!Gracias
[img:1zt2bukm]http://img59.imageshack.us/img59/1972/btntouch.png[/img:1zt2bukm] |
cómo crear un botón con btnbmp? | En mi version de fwh que tengo (11.01)
Tienes que crear 4 imagens para el estado.
1 Normal
2 Pressed
3 Disabled
4 Mouse Over
y asignarlos mediante a chamada al metodo LoadBitmaps(... )
[code=fw:3e1akv1c]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> LoadBitmaps<span style="color: #000000;">(</span> cResName1, cResName2, cBmpFile1, cBmpFile2,;<br /> cResName3, cBmpFile3, cResName4, cBmpFile4 <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBtnBmp<br /> </div>[/code:3e1akv1c] |
cómo crear un botón con btnbmp? | Germano,
Aqui tienes un ejemplo:
germano.prg
[code=fw:3jl807zd]<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: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBtn<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> <br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"btntouch.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">35</span> NOBORDER<br /><br /> oBtn:<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">(</span> ,,,,,,, <span style="color: #ff0000;">"btntouch2.bmp"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// este es el de arriba, modificado su color de fondo</span><br /><br /> <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></div>[/code:3jl807zd] |
cómo crear un botón con btnbmp? | [quote="Antonio Linares":hf5h29q1]Germano,
Aqui tienes un ejemplo:
germano.prg
[code=fw:hf5h29q1]<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: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBtn<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> <br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"btntouch.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">35</span> NOBORDER<br /><br /> oBtn:<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">(</span> ,,,,,,, <span style="color: #ff0000;">"btntouch2.bmp"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// este es el de arriba, modificado su color de fondo</span><br /><br /> <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></div>[/code:hf5h29q1][/quote:hf5h29q1]
[color=#FF0000:hf5h29q1][b:hf5h29q1]Funcionó! Gracias. ¿Cómo puedo compilar las imágenes en el ejecutable?[/b:hf5h29q1][/color:hf5h29q1] |
cómo crear un botón con btnbmp? | Nixbeau
Las imágenes tenés que cargarla a tu DLL o RC.
luego usas RESOURCE en vez de FILE
Saludos,
Adhemar |
cómo evoluciono? | Hola. Soy programador y lo hago con clipper 5.2, blinker 6.0, dbase III, y fw 2.4. Llevo unos 5 años programando así, pero veo que estoy muy estancado, pues todos los diálogos los creo desde código y me cuesta más crear el entorno que las rutinas en sí. Edito el código con el edit de ms-dos y luego compilo y linko con dos ficheros .bat y el .lnk . Podrían informarme de cómo programan ustedes ? Concretamente me interesa esto:
- Versión de fw
- Compilador
- Linkador
- Modo de Generar los diálogos
- Fichero de enlaces .lnk
- Modo de compilar y linkar
- 16, 32 o 64 bits
- Algún sitio con ejemplos
Perdonen mi ignorancia, pero estoy un poquito apurado y asustado. Gracias. |
cómo evoluciono? | Usa el editor de recursos de Borland, ó el de Pelles C (gratuito) desde <!-- m --><a class="postlink" href="http://www.smorgasbordet.com/pellesc/">http://www.smorgasbordet.com/pellesc/</a><!-- m --> así podrás dibujar los diálogos con el ratón y ahorrarás muchísimo tiempo.
Lo más aconsejable es usar 32 bits con Harbour ó xHarbour y FWH. Sólo tendrás que recompilar tus programas, sin tener que modificar el código fuente. |
cómo evoluciono? | Hola Antonio. Cuando adquirí la versión 2.4 de fw, también venía con ella fwh, pero intenté trabajar con ella y me lié muchícimo. Creo que era porque mis aplicaciones están muy mal hechas, y , por ejemplo, las variables no están declaradas antes de usarlas. Con fw y clipper no pasa nada, pero con fwh creo que has de hacerlo antes. Por eso era el que preguntaba tanta cosa en el mensaje, para ver si me entero un poquito de cómo hacer el cambio. Gracias. |
cómo evoluciono? | Tanto Harbour como xharbour, en la actualidad son totalmente compatibles con Clipper, por lo que puedes recompilar tu código tal cual está y debe funcionar sin problemas. |
cómo evoluciono? | [quote="chocochester":1s1zj4ny]Podrían informarme de cómo programan ustedes ?[/quote:1s1zj4ny]
Si observas los mensajes del foro, algunos escribimos en el pie del mensaje, las herramientas que utilizamos.
- Versión de fw: FWH 2.7 (pero creo que vale la FWH 2.4 que tienes)
- Compilador: XHarbour 0.99.61 (si usas FWH 2.4 quizas necesites una versión mas antigua)
- Linkador: Borland C++ 5.5.1 gratuito y 32 bit
- Modo de Generar los diálogos: WorkShop (gratuito) o código
- Modo de compilar y linkar: Verce 4.3 (gratuito y una maravilla)
- 16, 32 o 64 bits: 32
- Algún sitio con ejemplos: Los Samples de FW, FiveTilus y este foro.
Editor: Aunque a veces sigo usando el viejo EDIT, normalmente uso xEdit.
dBase: Para manejar directamente las dbf uso Prometheus (gratuito)
Es preferible que soluciones la definición de variables. Pero si quieres pasar de ellas, solo es necesario que al compilar quites el parámetro /n |
cómo iniciarme en Mod_harbour? | Amigos del foro:
Tengo necesidad de iniciar con Mod_Harbour pero no tengo idea de por donde empezar.
Una alma caritativa que me tire una hebra para saber por donde iniciar?, qué debo instalar?
Qué es Genesis?, Qué es Mercury?
Como ven, estoy muy ñoño en el tema <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Saludos y agradecido con el apoyo |
cómo iniciarme en Mod_harbour? | Estimado Armando,
Sigue estas instrucciones:
<!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?p=255112&sid=b3b1b03fd380464f8f819ceb8b405138#p255112">viewtopic.php?p=255112&sid=b3b1b03fd380464f8f819ceb8b405138#p255112</a><!-- l --> |
cómo iniciarme en Mod_harbour? | Antonio:
Muchas gracias, a ver si hay alguien más que se anime a darme tips?
Iré haciendo preguntas puntuales.
Saludos |
cómo insertar checkbox en TWord()? | Saludos al foro:
Es posible insertar un icono con la imagen checkbox en la clase TWORD()??
Algún ejemplo?
Gracias anticipadas |
cómo poner bototes en una ventana | Hola:
Me gustaría hacer algo así:
[img:1yyq7o3r]http://imagenes.sftcdn.net/es/scrn/53000/53690/3_GestionComercial_html_5c208f1d.jpg[/img:1yyq7o3r]
¿Es posible poner estos botones?. ¿Cómo?
Mil gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
cómo poner bototes en una ventana | utiliza tsbutton 7 del maestro Manuel, yo la utilizo y te aseguro que puedes hacer el mismo efecto que la pantalla que muestras, yo he logrado algo similar pero no se como colocar imagenes pegadas aqui para mostrarte.
los botones a la derecha lo puedes hacer con los comandos @ x, oWnd:nheight - 100 Button ....
espero que te sirva...
saludos desde chile |
cómo poner bototes en una ventana | mgsoft...
puedes usar las clases buttonbmp, btnbmp, rbbtn con sus comandos @ X, Y para obtener lo que deseas, es asi de simple
actualmente para ese tipo de pantallas pienso es mejor usar la ribbonbar, te daria un aspecto mas moderno y mejor estetica, aparte puedes usar un area mas grande en la pantalla
puedes usar la clase ttitle y manejarla como una "window" mas y agregarles los botones usando igual el comando @ X,Y |
cómo poner bototes en una ventana | Muchas gracias.
Pero una cosa, al usar coordenadas si cambia la resolución resulta que cambiará la posición de los mismos.
¿Cómo se colocarían de una forma fija, por ejemplo, a 10 cm de la derecha?.
Muchísimas Gracias |
cómo poner bototes en una ventana | mgsoft..
siguiendo la misma idea que expuso armando, usas
@ oWnd:nWidth - nAnchoBoton [- nMargenDerecho], nRow BUTTON .... |
cómo sigo con el paso de clipper a fwh | Muchachos, disculpen no me presenté, soy nuevo en el foro. Trabajo con clipper desde el 83, tuve algunas idas y vueltas, pero estoy de nuevo en programación haciendo programas de facturación y sueldos para colegios privados. Escribo desde Buenos Aires y espero poder devolver algún aporte al foro alguna vez.Bueno, imagino que todos deben haber pasado por lo mismo, estoy queriendo pasar los programas de clipper a fwh.ya logré compilar y linkar los programas de una sistema de facturación, modifiqué el buildh.bat para multiples programas y llegué a generar el exe. Ahora si lo corro no me muestra ninguna pantalla... supongo que debo empezar a trabajar los @ say y get....Si alguien me puede ayudar con algún consejo de cómo seguir, les agradezco. |
cómo sigo con el paso de clipper a fwh | NECESITAS UTILIZAR UN EDITOR DE RECURSOS (COMO EL RESOURCE WORKSHOP) PARA 'DIBUJAR' TODAS TUS PANTALLAS |
cómo sigo con el paso de clipper a fwh | Otros editores de recursos que puedes usar:ResEdit: (gratuito)<!-- m --><a class="postlink" href="http://www.resedit.net/">http://www.resedit.net/</a><!-- m -->PellesC (gratuito)<!-- m --><a class="postlink" href="http://www.smorgasbordet.com/pellesc/">http://www.smorgasbordet.com/pellesc/</a><!-- m -->VSX (Microsoft) gratuito<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=9572">http://forums.fivetechsoft.com/viewtopic.php?t=9572</a><!-- m --> |
cómo sigo con el paso de clipper a fwh | [quote="mario":3rrz6tbm]Muchachos, disculpen no me presenté, soy nuevo en el foro. Trabajo con clipper desde el 83, tuve algunas idas y vueltas, pero estoy de nuevo en programación haciendo programas de facturación y sueldos para colegios privados. Escribo desde Buenos Aires y espero poder devolver algún aporte al foro alguna vez.
Bueno, imagino que todos deben haber pasado por lo mismo, estoy queriendo pasar los programas de clipper a fwh.
ya logré compilar y linkar los programas de una sistema de facturación, modifiqué el buildh.bat para multiples programas y llegué a generar el exe.
Ahora si lo corro no me muestra ninguna pantalla... supongo que debo empezar a trabajar los @ say y get....
Si alguien me puede ayudar con algún consejo de cómo seguir, les agradezco.[/quote:3rrz6tbm]Todos tus Say y Get deben formar parte de los diálogos. Para eso tienes que considerar que cada uno de ellos es un objeto que puede ser invocado en cualquier momento y no como en clipper que corresponde a un manejo procedural. |
cómo sigo con el paso de clipper a fwh | De paso, Fw. necesita que el primer paso sea definir un WINDOWS principal, de la cual se deriva todo lo demás. PEjm.#include "fivewin.ch"FUNCTION Main()LOCAL oWndDEFINE WINDOW oWnd FROM 0, 0 TO 35, 100 NOMAXIMIZE oWnd:SetMenu( MainMenu( oWnd) )ACTIVATE WINDOW oWndRETURN NIL STATIC FUNCTION MainMenu( oWnd,oNamUsr )LOCAL oMenu MENU oMenu MENUITEM '&Tablas' MESSAGE "Actualizar Tablas" MENU MENUITEM "&1.- Tipos de Accidente" ACTION MSGALERT("UNO") MENUITEM "&2.- Tipos de Reclamos" ACTION MSGALERT("DOS") MENUITEM "&3.- Desglose Vehiculos" ACTION MSGALERT("TRES") ENDMENU MENUITEM "&Prestadores Servicio" ACTION MSGALERT("UIUI") ENDMENURETURN oMenuESPERO QUE ESTO TE AYUDE A COMENZARSUERTE!!! |
cómo sigo con el paso de clipper a fwh | Además tengo entendido que algunos colegas que Utilizan Fivewin de Argentina están organizando un encuentro, Trata de Tomar contacto con ellos, te serán de una gran ayuda. |
cómo sigo con el paso de clipper a fwh | No olvides usar VERCE, te ayuda mucho con lo de compilacion de varios .prg, un editor de recurso como Pelles C, Workshop, visual c, entre otros, un buen editor de texto, y bajar los manuales que estan en las utilidades, para algun ejemplo solo pida, que aca te daremos ayuda como sabemos hacerlo. rapidamente estaras programando visualmente, revisa en las DESCARGAS del foro, hay 2 sistemas con sus fuentes muy buenos, te aseguro seran de mucha ayuda..saludos desde Venezuela. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
cómo sigo con el paso de clipper a fwh | gracias a todos. voy a seguir sus consejos... puede ser que haya un modo de compilarlo tipo consola de dos ? |
cómo sigo con el paso de clipper a fwh | [quote="mario":a24b7n5i]gracias a todos. voy a seguir sus consejos... puede ser que haya un modo de compilarlo tipo consola de dos ?[/quote:a24b7n5i]Si eso eso quieres, puedes utilizar el "buildx.bat" que se encuentra en la carpeta samples (modifica los paths para que alcancen a Bcc y xharbour). Previamente debes invocar a una ventana D.O.S. para correr el buildx.bat |
cómo sigo con el paso de clipper a fwh | Mario.Posiblemente te ayude el siguiente programa, y aprovechando que quique tiene su FTP, pues... <!-- m --><a class="postlink" href="ftp://ftp.quiquesoft.com/fivewin/dbwide/files/genfw.zip">ftp://ftp.quiquesoft.com/fivewin/dbwide/files/genfw.zip</a><!-- m -->espero te sirva.Saludos |
cómo sigo con el paso de clipper a fwh | Mario, si quieres compilar tipo "consola DOS" no necesitas usar FWH solo Harbour o xHarbour, desde el momento que usas Fivewin estas trabajando en entorno Windows y renunciando a la consola DOS. |
dBase V7 and indexes | Hi All
Is there a way I can open a dBase V7 table/memo and index files using harbour and fivewin - these tables have more field types than the standard
dBase tables.
Cheers
Colin |
dBase V7 and indexes | Colin,
Please post your question here:
[url:38et4gmm]https://groups.google.com/forum/#!forum/harbour-users[/url:38et4gmm]
and surely it will be added to Harbour, thanks |
da dove ricomincio? | Salve, sono un vecchio utilizzatore di fivewin, ho sviluppato delle procedure con la versione 1.9.2 più 6/7 anni fà. Ora mi riaffaccio nel settore e sto cercando di capire da dove ricominciare. Cosa mi consigliate di fare?
Riparto da Fivewin?
Imparo l'utilizzo di xharbour?
grazie |
da dove ricomincio? | [quote="damianodec":3ppsqbe0]Salve, sono un vecchio utilizzatore di fivewin, ho sviluppato delle procedure con la versione 1.9.2 più 6/7 anni fà. Ora mi riaffaccio nel settore e sto cercando di capire da dove ricominciare. Cosa mi consigliate di fare?
Riparto da Fivewin?[/quote:3ppsqbe0]
Se già hai utilizzato queste librerie e ti ci sei trovato bene, perché no?
[quote="damianodec":3ppsqbe0]Imparo l'utilizzo di xharbour?[/quote:3ppsqbe0]
xHarbour ti serve al posto di Clipper e quindi sei obbligato ad utilizzarlo se vuoi sviluppare programmi a 32 bit. Non c'è molto da imparare, comunque. Puoi utilizzarlo come il vecchio Clipper. Ha delle estensioni e la compilazione avviene in due fasi (PRG -> C e C -> OBJ) ma il tutto può essere reso trasparente con un semplice batch.
EMG |
dal web 2.0 ai media sociali | [url:2s0zrjl2]http://www.fivetechsoft.com/files/dal_web_2.0_ai_media_sociali.pdf[/url:2s0zrjl2]
This is a very interesting reading <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Published with Creative Commons license:
[url:2s0zrjl2]http://creativecommons.org/licenses/by-nc-sa/2.5/es/deed.en[/url:2s0zrjl2] |
dal web 2.0 ai media sociali | mappa concettuale del Web 2.0 creata da Marcus Angermeier nel novembre del 2005
<!-- m --><a class="postlink" href="http://kosmar.de/wp-content/web20map.png">http://kosmar.de/wp-content/web20map.png</a><!-- m -->
[img:2cezmo6v]http://img21.imageshack.us/img21/359/capturepm.png[/img:2cezmo6v] |
dar foco a get en un folder | Hola lo que necesito es darle el foco al inicio de un folder al get que yo predefiní como primero en el workshop.
[code=fw:1rkfoqp4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgcli <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"FOLD_CLI"</span> <span style="color: #0000ff;">ICON</span> surge<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">FOLDER</span> oFold <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlgcli;<br /> <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"General"</span>,<span style="color: #ff0000;">"Datos"</span>;<br /> <span style="color: #0000ff;">DIALOGS</span> <span style="color: #ff0000;">"fold_cli1"</span>, <span style="color: #ff0000;">"fold_cli2"</span>;<br /><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oNcli <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">ncli</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">update</span> <br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oNape <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">nape</span> <span style="color: #0000ff;">picture</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">update</span> <span style="color: #0000ff;">valid</span> CampoNoVacio<span style="color: #000000;">(</span>oData:<span style="color: #000000;">nape</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oDomi <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">domi</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">108</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">update</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oLoca <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">loca</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">109</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">update</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oCpos <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">cpos</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">118</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">update</span><br /><br />etc, etc<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ODLGCLI <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oNcli:<span style="color: #000000;">setfocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> </div>[/code:1rkfoqp4]
Alguien me puede orientar
Gracias |
dar foco a get en un folder | Luis,
Prueba con:
ACTIVATE DIALOG ODLGCLI CENTER ON INIT ( oNcli:setfocus(), .F. ) |
dar foco a get en un folder | Gracias Antonio, hace poco te había hecho una consulta parecida, y la solución fue parecida a esta , que con el el falso le indicaba a Windows que cambiara el foco.
Nuevamente gracias por la paciencia |
darle el focus en otra pestaña | Srs. aqui les dejo a ver en que me ayudan, tengo 1 folder donde esta 1 browse, 1 bnt para pasar a una 2da. pestaña y le doy el focus a 1 get de la 2da pestaña, pero cuando le doy ENTER no me pasa al siguiente GET, pero usando el tabulador si, los 3 primeros GET tienen valid y when, de ahi en adelante si se pasa de GET en GET usando el ENTER, si alguno tiene idea de que debo revisar. FW 2.5 CLIP53 BLINKER 6.0, estoy en Venezuela como puedo adquirir una verion de FWH y demas componentes ara pasar a 32 bits? desde ya muchas gracias. mi correo personal es <!-- e --><a href="mailto:joseluisysturiz@yahoo.com">joseluisysturiz@yahoo.com</a><!-- e --> |
darle el focus en otra pestaña | Jose Luis:
Mostranos el codigo que usas para cambiar de folder y darle foco al primer get y el de la definicion y valid de ese get.
Yo usando algo como esto nunca he tenido ese problema:
REDEFINE GET oPrograma VAR cPrograma ID 162 FONT oFont3 OF oFld:aDialogs[1] PICTURE "@x" ;
VALID (ValProgra(lNew,@cPrograma,cXoc) .and. cambiafld(oFld)) UPDATE
Static Function CambiaFld(oFld)
oFld:Setoption(2)
oFld:nOption:=2
oFld:Refresh()
return .t.
El primer get del folder 2 toma el foco sin hacerle :setfocus() ni nada por el estilo porque es el primer control en el orden establecido para el dialogo de esa pestaña en el workshop. Y puedo pasar a los siguientes gets con enter sin problemas.
Saludos, |
darle el focus en otra pestaña | Jose Luis,
>
estoy en Venezuela como puedo adquirir una version de FWH y demas componentes para pasar a 32 bits?
>
Toda la distribución de nuestros productos se hace desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> |
darle el focus en otra pestaña | Hola amigo tengo una dudas:
con los folder, resulta que tengo una base
de datos con los siguientes campos y datos
Codigo Detalle
------ -------
X-1 XXXXXXXXXXX
X-1 WWWWWWWWWWW
X-2 AAAAAAAAAAA
X-2 CCCCCCCCCCC
B-1 UUUUUUUUUUU
B-1 PPPPPPPPPPP
B-2 VVVVVVVVVVV
B-2 SSSSSSSSSSS
Estos Datos los quiero en un Folder con dos pestañas
una llamada Pestaña-1 y la otra Pestaña-2 pero el problema
que tengo es que en cada pestaña tienen que ir 2 Lisbox como
en este ejemplo.
Pestaña-1 Pestaña-2
ListBox 1 ListBox 1
Codigo Detalle Codigo Detalle
X-1 XXXXXXXXXXX B-1 UUUUUUUUU
X-1 WWWWWWWW B-1 PPPPPPPPP
ListBox 2 LISTBOX
Codigo Detalle Codigo Detalle
X-2 AAAAAAAAAAA B-2 VVVVVVVVV
X-2 CCCCCCCCCC B-2 SSSSSSSSS
Todos los Datos estan es una sola base de Datos desde
ya gracias
Saludos |
darle el focus en otra pestaña | Dame tu correo y te mando un ejemplo para ver si es lo que necesitas. |
dashboard metropanel | Holá, Algun ejemplo práctico? como en este ejemplo?
[url:xeowykh9]http://fivewin.com.br/index.php?/topic/38005-dashboard-metropanel/[/url:xeowykh9]
Gracias.
Regards, saludos. |
dashboard metropanel | este es con puros array
[url=https://postimg.cc/CzCyQbDL:23lul273][img:23lul273]https://i.postimg.cc/15294H36/2-Sin-t-tulo.png[/img:23lul273][/url:23lul273]
saludos |
dashboard metropanel | Hello Cesar Cortes Cruz, tiens un ejemplo simples para un amigo en Brasil?
Muchas gracias.
Regards, saludos. |
dashboard metropanel | ok Joao lo hago y te lo comparto,
saludos. |
dashboard metropanel | [quote="sysctrl2":2so9fe7d]ok Joao lo hago y te lo comparto,
saludos.[/quote:2so9fe7d]
Great!! Gracias my dear friend.
Regards, saludos. |
dashboard metropanel | Joao aquí está , se puede mejorar
Saludos
[url=https://postimages.org/:3f75vyi3][img:3f75vyi3]https://i.postimg.cc/gjFW5yc9/xBrw.png[/img:3f75vyi3][/url:3f75vyi3]
[code=fw:3f75vyi3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <FiveWin.ch><br /><span style="color: #00D7D7;">#include</span> <XBrowse.ch><br /><br />*--------------------------------------<br />*TEST.PRG<br />* Windows <span style="color: #0000ff;">MDI</span> + Windows Child + <span style="color: #0000ff;">Dialog</span> + <span style="color: #0000ff;">xBrowse</span><br />* <span style="color: #000000;">21</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">2023</span><br />*--------------------------------------<br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><span style="color: #00C800;">STATIC</span> oBrw<br /><span style="color: #00C800;">STATIC</span> oWndChild<br /><span style="color: #00C800;">STATIC</span> oDlg<br /><span style="color: #00C800;">STATIC</span> lSalir := .f.<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Win_Child<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">VALID</span> lSalir<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Win_Child<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oBrush<br /> <span style="color: #00C800;">LOCAL</span> hWDskTop := GetDeskTopWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> aResXY := GetClientRect<span style="color: #000000;">(</span> hWDskTop <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oSay<br /> <span style="color: #00C800;">LOCAL</span> oFont<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">color</span> RGB<span style="color: #000000;">(</span><span style="color: #000000;">239</span>,<span style="color: #000000;">118</span>,<span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Times New Roman"</span> BOLD <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">35</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndChild <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_CAPTION, WS_VISIBLE, WS_SYSMENU <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"N/W"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Windows Child"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">size</span> aResXY<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>, aResXY<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">STYLE</span> WS_CHILD <span style="color: #0000ff;">OF</span> oWndChild <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"32 H A B I T A C I O N E S"</span> ;<br /> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">font</span> oFont <span style="color: #0000ff;">COLOR</span> CLR_BLUE, nrgb<span style="color: #000000;">(</span><span style="color: #000000;">239</span>,<span style="color: #000000;">118</span>,<span style="color: #000000;">10</span> <span style="color: #000000;">)</span><br /><br /><br /> MakeBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> MakeBrw<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> oDlg:<span style="color: #000000;">lhelpicon</span> := .F.<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NOWAIT</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> SET MSGBAR <span style="color: #0000ff;">OF</span> oWndChild <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"SysCtrl Software 2023"</span> <span style="color: #000000;">2010</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndChild ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oWndChild:<span style="color: #000000;">SetSize</span><span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">nWidth</span>, oDlg:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">valid</span> lSalir<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> MakeBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> nRow := <span style="color: #000000;">5</span><br /> <span style="color: #00C800;">LOCAL</span> nCol := <span style="color: #000000;">10</span><br /> <span style="color: #00C800;">LOCAL</span> nAncho := <span style="color: #000000;">45</span> <span style="color: #B900B9;">//50</span><br /> <span style="color: #00C800;">LOCAL</span> nAlto := <span style="color: #000000;">35</span> <span style="color: #B900B9;">//40</span><br /> <span style="color: #00C800;">LOCAL</span> oBtn := array<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oFont := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Arial"</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span>,.F.,.F.,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,.F. <span style="color: #000000;">)</span><br /><br /> @ nRow, nCol <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> nAncho, nAlto <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> ;<br /> NOBORDER ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" "</span> + <span style="color: #ff0000;">"EXIT"</span>+CRLF+<span style="color: #ff0000;">""</span> ;<br /> FILENAME <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WH16.08<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\E</span>XIT.BMP"</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> iif<span style="color: #000000;">(</span> Salir_hotel<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, Cerrar_Todo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">FONT</span> oFont ;<br /> TOP<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> MakeBrw<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> aRooms := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span><span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span>,<span style="color: #000000;">105</span>,<span style="color: #000000;">106</span>,<span style="color: #000000;">107</span>,<span style="color: #000000;">108</span><span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span><span style="color: #000000;">109</span>,<span style="color: #000000;">110</span>,<span style="color: #000000;">111</span>,<span style="color: #000000;">112</span>,<span style="color: #000000;">113</span>,<span style="color: #000000;">114</span>,<span style="color: #000000;">115</span>,<span style="color: #000000;">116</span><span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span><span style="color: #000000;">117</span>,<span style="color: #000000;">118</span>,<span style="color: #000000;">119</span>,<span style="color: #000000;">120</span>,<span style="color: #000000;">121</span>,<span style="color: #000000;">122</span>,<span style="color: #000000;">123</span>,<span style="color: #000000;">124</span><span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span><span style="color: #000000;">125</span>,<span style="color: #000000;">126</span>,<span style="color: #000000;">127</span>,<span style="color: #000000;">128</span>,<span style="color: #000000;">129</span>,<span style="color: #000000;">130</span>,<span style="color: #000000;">131</span>,<span style="color: #000000;">132</span><span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> oFont<br /> <span style="color: #00C800;">LOCAL</span> nCol<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-24</span> BOLD<br /><br /> @ <span style="color: #000000;">48</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">510</span>,<span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> ARRAY aRooms ;<br /> LINES CELL NOBORDER <span style="color: #0000ff;">FONT</span> oFont<br /><br /> <span style="color: #00C800;">for</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">120</span><br /> :<span style="color: #000000;">oDataFont</span> := oFont<br /> :<span style="color: #000000;">nDataBmpAlign</span> := AL_CENTER<br /> END<br /> <span style="color: #00C800;">next</span><br /><br /> SetupBrw<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> SetupBrw<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> aGradBarSel:= <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">252</span>,<span style="color: #000000;">232</span>,<span style="color: #000000;">171</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>, <span style="color: #000000;">34</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> aGradRowSel:= <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">108</span>,<span style="color: #000000;">125</span>,<span style="color: #000000;">184</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">241</span>,<span style="color: #000000;">222</span>,<span style="color: #000000;">088</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> nRowPos, nColPos<br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">lHeader</span> := .f.<br /> :<span style="color: #000000;">lFooter</span> := .f.<br /> :<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">0</span><br /> :<span style="color: #000000;">nFooterHeight</span> := <span style="color: #000000;">0</span><br /><br /> :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br /> :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">110</span><br /><br /> <span style="color: #B900B9;">//para barra de linea selecc cuando el control no tiene el foco</span><br /> :<span style="color: #000000;">bClrSel</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span>, aGradRowSel <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #B900B9;">//para barra de linea selecc cuando el control tiene el foco</span><br /> :<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aGradBarSel <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /><br /> :<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span> nRowPos := oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> nColPos := oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nCreationOrder</span>, ;<br /> CLICK_ACTION<span style="color: #000000;">(</span> oBrw, nRowPos, nColPos <span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CLICK_ACTION<span style="color: #000000;">(</span> oBrw, nRow, nCol <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cRoom := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span>nCol<span style="color: #000000;">]</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Habitación No. "</span> + str<span style="color: #000000;">(</span>cRoom<span style="color: #000000;">)</span>, <span style="color: #ff0000;">"User"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Salir_Hotel<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oQry, cQry, cApertura, cCierre<br /> <span style="color: #00C800;">local</span> nSeek := <span style="color: #000000;">0</span><br /><br /> <span style="color: #00C800;">if</span> MsgYesNo<span style="color: #000000;">(</span><span style="color: #ff0000;">"Cerrar sistema ?"</span>, <span style="color: #ff0000;">"Usuario ..."</span> <span style="color: #000000;">)</span><br /> lSalir := .t.<br /> <span style="color: #00C800;">else</span><br /> lSalir := .f.<br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> lSalir<br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Cerrar_Todo<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> SysRefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Importante !!</span><br /><br /> FreeResources<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">RELEASE</span> All<br /><br /> Hb_GCAll<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /> CLEAR MEMORY<br /><br /> CLOSE DATABASES <br /><br /> PostQuitMessage<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br /> __Quit<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3f75vyi3] |
dashboard metropanel | Gracias, my dear friend. Excelent!
Regards, saludos. |
dashboard with a dial | I have an accounting program and I would like to create a dashboard where I can display a number of dials that show data from a dbf. Any thoughts or code would be most helpful. |
data from pdf ? | Ciao
Any help to get/retrive data from PDF Editable ?
Tks |
data from pdf ? | You can use pdftotext.exe to extract the document content, then use regular string functions to get what you want. |
data from pdf ? | Is pdftotext.exe Free ?
Any link for download ?
tks |
data from pdf ? | <!-- m --><a class="postlink" href="http://foolabs.com/xpdf/download.html">http://foolabs.com/xpdf/download.html</a><!-- m -->
the first result when searching 'pdftotext.exe' in Google. XPdf is the full package, and includes the pdf-utils that includes 'pdftotext.exe'. |
data from pdf ? | thanks a lot !! |
database class version 9.02 differences | For James and Antonio,
Database class
I am using TDATA now with the new database class fom version 9.02.
Testing the length of a buffered field ( N,3.0) now returns 10 but the field is only 3.
If I link in the old database.prg the values are correct.
Regards,
Otto |
database class version 9.02 differences | Otto,
This example is working fine with FWH 9.02:
[code=fw:1xx3yfma]<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: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDbf<br /><br /> DbCreate<span style="color: #000000;">(</span> <span style="color: #ff0000;">"test"</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"age"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> USE test<br /><br /> DATABASE oDbf<br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> oDbf:<span style="color: #000000;">age</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1xx3yfma] |
database class version 9.02 differences | Hello Antonio,
yes you are right.
But inside my program the values are different.
There must be something in between.
I will try to make a small example.
Best regards,
Otto |
database class version 9.02 differences | Hello Antonio,
please test with this code.
The problem must be the append-method.
This code reports 10 instead of 3.
Best regards,
Otto
[code=fw:1ngmdlpj]<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: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDbf<br /> <br /><br /> DbCreate<span style="color: #000000;">(</span> <span style="color: #ff0000;">"test"</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"age"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> USE test<br /><br /> DATABASE oDbf<br />oDbf:<span style="color: #000000;">blank</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"database object"</span> + STR<span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> oDbf:<span style="color: #000000;">age</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <br /> <span style="color: #00C800;">function</span> dbpack<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">function</span> dbzap<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1ngmdlpj] |
database class version 9.02 differences | Otto,
the length of str() without parameters is always 10.
Regards,
Detlef |
database class version 9.02 differences | Hello Detlef,
thank you.
But the lenght should be 3 like it was with version 8.12, etc.
If you look into the append method in database.prg from the old and the new versions there have been changes.
[code=fw:2wgwtyoi]<div class="fw" id="{CB}" style="font-family: monospace;">VERSION <span style="color: #000000;">8</span><br /> <span style="color: #00C800;">METHOD</span> Blank<span style="color: #000000;">(</span> nRecNo <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">nArea</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> nRecNo := RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span>,;<br /> DBGoBottom<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> DBSkip<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, ;<br /> ::<span style="color: #000000;">Load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,;<br /> DBGoTo<span style="color: #000000;">(</span> nRecNo <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br />VERSION <span style="color: #000000;">9</span><br /><span style="color: #00C800;">METHOD</span> Blank<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TDataBase<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBuffer</span><br /> AEval<span style="color: #000000;">(</span> ::<span style="color: #000000;">aBuffer</span>, <span style="color: #000000;">{</span> |u,i| ::<span style="color: #000000;">aBuffer</span><span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> := uValBlank<span style="color: #000000;">(</span> u <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> .f.<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:2wgwtyoi]
Regards,
Otto |
database class version 9.02 differences | We should modify uValBlank() to keep the original numeric length.
This is the code:
[code=fw:3om1pibl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">case</span> cType == <span style="color: #ff0000;">"N"</span><br /> uResult = uValue - uValue<br /> </div>[/code:3om1pibl]
How to modify it to keep the original length ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
database class version 9.02 differences | Hello Antonio,
>How to modify it to keep the original length ?
I am sure 9.03 will give the answer.
Thanks in advance
Otto |
database class version 9.02 differences | This simple example changes the value length!
[code=fw:2rwuf3fo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Test<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> n - n<br /> </div>[/code:2rwuf3fo]
and this code, keeps the length:
[code=fw:2rwuf3fo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Test<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> n<br /> </div>[/code:2rwuf3fo]
Is it a Harbour/xHarbour bug ? |
database class version 9.02 differences | Otto,
Enrico gave me the solution. We have to modify function uValBlank() this way:
[code=fw:3bdqjoxd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">case</span> cType == <span style="color: #ff0000;">"N"</span><br /> uResult = Val<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> uValue - uValue, Len<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> uValue <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3bdqjoxd]
Now it seems to works ok. I appreciate your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
database class version 9.02 differences | Antonio,
thank you. Now I get the right values.
Regards,
Otto |
database class version 9.02 differences | Antonio, i change this in tdatabase class? thanks |
database class version 9.02 differences | Norberto,
you have to change C:\Fwh\source\function\valblank.prg and then link in this changed function.
Regards,
Otto |
database class version 9.02 differences | Otto, very thanks i will make this now. |
database connected with outlook | I need to create a database that stores emails and Id of users. I need When to enter the ID to my application a new Email dialog is opened with the correspondent email.
Any FiveWin is pretty old :
??????????????????????????????????????????????????????????????????????????????
? FiveWin for Harbour 8.08 - Aug. 2008 Harbour development power ?
? (c) FiveTech, 1993-2008 for Microsoft Windows 95/98/NT/2000/ME/XP/Vista ?
??????????????????????????????????????????????????????????????????????????????
Any hint about tutorials and samples for OLE that will be used for that purpose ? |
database connected with outlook | Your first step is to upgrade to a current FWH. It has the core parts that best serve your need. |
database oDbf | Compañeros, buenas tardes:
Tengo una DBF con muchos campos. Necesito copiar un registro y pegarlo en otra DBF idéntica (hacer un duplicado de ese registro). Para evitar tantos "replace..." por cada campo, quiero utilizar la clase tdatabase
[code=fw:3caxvkd9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">select</span> <span style="color: #000000;">1</span><br />database oDbf <br />oDbf:<span style="color: #000000;">load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> && copia<br /><span style="color: #0000ff;">select</span> <span style="color: #000000;">2</span> <br />append blank <br />oDbf:<span style="color: #000000;">save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> && pega <br /> </div>[/code:3caxvkd9]
Sin embargo, solo me crea el registro en blanco y nada más.
¿ Qué hago mal?
Gracias. Saludos.
LORENZO: |
database oDbf | [code=fw:g61h9zx0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">1</span><br />DATABASE oDbf1<br />aCopy := oDbf1:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">2</span><br />DATABASE oDbf2<br />oDbf2:<span style="color: #000000;">Append</span><span style="color: #000000;">(</span> aCopy <span style="color: #000000;">)</span><br /> </div>[/code:g61h9zx0] |
database oDbf | Another method, without the overhead of creating 2 TDatabase objects.
[code=fw:8qx42nfc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">1</span><br />aData := FW_DBFToArray<span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">2</span><br />FW_ArrayToDbf<span style="color: #000000;">(</span> aData <span style="color: #000000;">)</span><br /> </div>[/code:8qx42nfc] |
database oDbf | Simplest way
[code=fw:1t8gvbky]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">1</span><br />hRec := FW_RecToHash<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">2</span><br />APPEND BLANK<br />FW_HashToRec<span style="color: #000000;">(</span> hRec <span style="color: #000000;">)</span><br />DBUNLOCK<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:1t8gvbky] |
database oDbf | Witch off these techniques are the best when the source dbf will always have less fields than the target, but the fields always match in name and structure.
There must and will be one index field for matching and updating.
There will also be some replacement done (ex. a standard value that is needed) just before the update in the source dbf field. |
database oDbf | The Gatter() and scatter() functions are anno 2021 not preferred anymore right ? |
database oDbf | [quote:qdjx44gt]
Witch off these techniques are the best when the source dbf will always have less fields than the target, but the fields always match in name and structure.
[/quote:qdjx44gt]
We recommend FW_RecToHash() and FW_HashToRec().
This writes only common fields. The order of the fields is not important. It is the responsibility of the programmer to ensure compatibility of field types and sizes to avoid errors while writing.
[quote:qdjx44gt]
There must and will be one index field for matching and updating.
[/quote:qdjx44gt]
The programmer has to locate the record containing the matching index and then lock the record before calling FW_HashToRec() for updating.
[quote:qdjx44gt]
There will also be some replacement done (ex. a standard value that is needed) just before the update in the source dbf field.
[/quote:qdjx44gt]
After reading the data from the source dbf into the hash, the programmer can modify and field value in the hash before updating the destination dbf. |
database oDbf | [quote="Marc Venken":1kdbtu2i]The Gatter() and scatter() functions are anno 2021 not preferred anymore right ?[/quote:1kdbtu2i]
The functions FW_DbfToArray() and FW_ArrayToDBF() work as Gather() and Scatter().
Hash functions are more flexible.
Gather() and Scatter() were originally used to editing records. TDataRow is better than these functions. |
database oDbf | [quote:7qf8avl3]
After reading the data from the source dbf into the hash, the programmer can modify and field value in the hash before updating the destination dbf.[/quote:7qf8avl3]
I looked at Hashes, and the look like arrays
[code=fw:7qf8avl3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">local</span> aData:= <span style="color: #000000;">{</span>;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'codigo'</span> => <span style="color: #ff0000;">'uno'</span>, <span style="color: #ff0000;">'nombre'</span> => <span style="color: #ff0000;">'Juan'</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'codigo'</span> => <span style="color: #ff0000;">'dos'</span>, <span style="color: #ff0000;">'nombre'</span> => <span style="color: #ff0000;">'Maria'</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'codigo'</span> => <span style="color: #ff0000;">'tres'</span>, <span style="color: #ff0000;">'nombre'</span> => <span style="color: #ff0000;">'Jose'</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'codigo'</span> => <span style="color: #ff0000;">'cuatro'</span>, <span style="color: #ff0000;">'nombre'</span> => <span style="color: #ff0000;">'Sonia'</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'nombre'</span> => <span style="color: #ff0000;">'Pedro'</span>, <span style="color: #ff0000;">'codigo'</span> => <span style="color: #ff0000;">'cinco'</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'edad'</span> => <span style="color: #000000;">18</span>, <span style="color: #ff0000;">'codigo'</span> => <span style="color: #ff0000;">'seis'</span> <span style="color: #000000;">}</span>;<br /> <span style="color: #000000;">}</span><br /><br /> XBROWSER aData FASTEDIT <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"ARRAY OF HASHES"</span><br /> </div>[/code:7qf8avl3]
How do you edit 1 hash then ? I have them in a loop and let say I want to set the date as a value insite 1 element
The dbf field = datum (D)
hRec := data->( FW_RectoHash() )
For DBF we know..
data->datum = date()
So how to edit the hash element from that record and the field datum ? |
database oDbf | [code=fw:gguxd1xg]<div class="fw" id="{CB}" style="font-family: monospace;">hRec := data-><span style="color: #000000;">(</span> FW_RectoHash<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />? hRec<span style="color: #000000;">[</span> <span style="color: #ff0000;">"datum"</span> <span style="color: #000000;">]</span><br />hRec<span style="color: #000000;">[</span> <span style="color: #ff0000;">"datum"</span> <span style="color: #000000;">]</span> := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #000000;">20</span><br /><span style="color: #000000;">(</span>otheralias<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> FW_HashToRec<span style="color: #000000;">(</span> hRec <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:gguxd1xg] |
database object | To all,
I think Modified() with method blank() does not work correctly.
In this case modified() checks always agains record number 1.
Best Retards,
Otto
[code=fw:318c03rw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Modified<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TDataBase<br /><br /> <span style="color: #00C800;">local</span> n<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBuffer</span><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">(</span> ::<span style="color: #000000;">nArea</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> FCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! <span style="color: #000000;">(</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> FieldGet<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == ::<span style="color: #000000;">aBuffer</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">return</span> .t.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> .f.<br /> </div>[/code:318c03rw] |
database object | As this is my personal knowledge base, too I post my work around here:
Regards,
Otto
[code=fw:16o3kufh]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oKBuch</span> := TData<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> , <span style="color: #ff0000;">"datawin<span style="color: #000000;">\k</span>asse"</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">use</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">blank</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> aBufferBlank := AClone<span style="color: #000000;">(</span> ::<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">abuffer</span> <span style="color: #000000;">)</span><br /> <br /><br /><span style="color: #B900B9;">// if you set default values</span><br /> ::<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">datum</span> := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> aBufferBlank<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> := ::<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">Beleg</span><br /> aBufferBlank<span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span> := ::<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">datum</span><br /><br /><br /><br /> lreturn := ModifiedBlank<span style="color: #000000;">(</span> oSelf:<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">nArea</span>,aBufferBlank, oSelf:<span style="color: #000000;">oKBuch</span>:<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ModifiedBlank<span style="color: #000000;">(</span> nArea,aBufferBlank, aBuffer <span style="color: #000000;">)</span> <br /><br /> <span style="color: #00C800;">local</span> n<br /> <br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">(</span> nArea <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> FCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">if</span> ! aBuffer<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> == aBufferBlank<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>aBuffer<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .t.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> .f.<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:16o3kufh] |
database object | Otto,
Method Blank() does not change the record number, so method Modified() should work fine.
Maybe the database is being displayed on a browse and the browse is changing the record number ? |
database object | Hello Antionio,
I am sorry.
I use TDATA from James and for compatibility reason still a database.prg with this
METHOD Blank( nRecNo ) INLINE ( ::nArea )->( nRecNo := RecNo(),;
DBGoBottom(), ;
DBSkip( 1 ), ;
::Load(),;
DBGoTo( nRecNo ) )
I try to check the new method in database.prg.
Best regards,
Otto
I |
database object | Hello Antonio,
I check again the "method modified".
What I do not understand is how can ( ::cAlias )->( FieldGet( n ) ) read a record which does not exist in the database yet.
Best regards,
Otto
METHOD Modified() CLASS TDataBase
local n
if ::lBuffer
for n := 1 to ( ::nArea )->( FCount() )
if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ n ]
return .t.
endif
next
endif
return .f. |
database object | Hello Antonio,
::FieldGet( 1 ) would Show the right value.
( ::cAlias )->( FieldGet( n ) ) Shows the value of the first row.
Can you please help me.
Best regards,
Otto
METHOD Modified() CLASS TDataFWH
local n
logfile("log.txt",{ ::recno(), "modified" } )
logfile("log.txt",{ "FieldGet", ::FieldGet( 1 ) } )
for n := 1 to Len( ::aFldNames )
if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ n ]
msginfo(( ::cAlias )->( FieldGet( n ) ))
msginfo(::aBuffer[ n ])
return .t.
endif
next
return .f. |
database object | Hello Antonio,
if I check immediately afte assigning ::abuffer in METHOD Blank()
( ::cAlias )->( FieldGet( 1 ) ) returns the value of the first record in the database.
Are you sure modified is working if you add a record using blank()
Best regards,
Otto
[code=fw:2rhiosce]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Blank<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TDataFWH<br /><br /> <br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBuffer</span><br /> AEval<span style="color: #000000;">(</span> ::<span style="color: #000000;">aBuffer</span>, <span style="color: #000000;">{</span> |u,i| ::<span style="color: #000000;">aBuffer</span><span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> := uValBlank<span style="color: #000000;">(</span> u <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"log.txt"</span>,<span style="color: #000000;">{</span> ::<span style="color: #000000;">recno</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"*** Blank"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"log.txt"</span>,<span style="color: #000000;">{</span> <span style="color: #ff0000;">"::FieldGet ->"</span>, ::<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"log.txt"</span>,<span style="color: #000000;">{</span> <span style="color: #ff0000;">"FieldGet ->"</span>, <span style="color: #000000;">(</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> FieldGet<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"log.txt"</span>,<span style="color: #000000;">{</span> <span style="color: #ff0000;">"aBuffer ->"</span>, ::<span style="color: #000000;">aBuffer</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"log.txt"</span>,<span style="color: #000000;">{</span> ::<span style="color: #000000;">recno</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"*** Ende"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> .f.<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:2rhiosce]
15.11.2012 05:42:12: 1 *** Blank
15.11.2012 05:42:12: ::FieldGet ->
15.11.2012 05:42:12: FieldGet -> Gute Anreise
15.11.2012 05:42:12: aBuffer ->
15.11.2012 05:42:12: 1 *** Ende |
database object | Otto,
I'm also using tData. Are you using tRecord also ? When using an xbrowse, and editing a particular row, I have the values in a tRecord. Thus I never have a problem with saves.
I've used it for many years ( and James did make some revisions along the way ), and have no problems.
Tim |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.