messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2009-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco\n Buenos dias\n \n En la sintaxis tienes este error :\n tu escribes AUTO INCREMENT\n debe ser AUTO_INCREMENT\n\nSALUDOS", "time": "16:12", "topic": "Amigos expertos en MySql + xHarbour", "username": "ricardog" } ]
Amigos expertos en MySql + xHarbour
[ { "date": "2009-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Ricardo:\n¡Magnifico! ¡Excelente!...!Al fin funciona!. Estaba a punto de \"colgar los guantes\". En lo futuro, voy a ser más cuidadoso para no \"trabarme\". Lo raro es que no presenta ningún mensaje de error por mala sintaxis. Sólo no creaba la tabla.\nMuchas gracias a tí, y a cada uno de ustedes.\n\nSaludos.", "time": "18:04", "topic": "Amigos expertos en MySql + xHarbour", "username": "FranciscoA" } ]
Amigos expertos en MySql + xHarbour
[ { "date": "2009-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"FranciscoA\":2cifngpb]Ricardo:\n¡Magnifico! ¡Excelente!...!Al fin funciona!. Estaba a punto de \"colgar los guantes\". En lo futuro, voy a ser más cuidadoso para no \"trabarme\". Lo raro es que no presenta ningún mensaje de error por mala sintaxis. Sólo no creaba la tabla.\nMuchas gracias.\n\nSaludos.[/quote:2cifngpb]\n\nFranciscoA,\n\nDe hecho si envía un mensaje, solo que regresa una consulta. en esa consulta va el error.\n\nsaludos", "time": "18:20", "topic": "Amigos expertos en MySql + xHarbour", "username": "wmormar" } ]
Amigos expertos en MySql + xHarbour
[ { "date": "2009-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Entendido, William. Muchisimas gracias.\nSaludos.", "time": "18:23", "topic": "Amigos expertos en MySql + xHarbour", "username": "FranciscoA" } ]
Amigos expertos en MySql + xHarbour
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos,\n\nComo se de la familia que hemos formado (a la distancia), me es triste comentarles del fallecimiento de un amigo/hermano del foro RAMON PAREDES.\n\nPido acompañemos a la familia en estos momentos tan difíciles.\n\nLos que conocimos a Ramón sabemos de la gran persona que era.\n\n[url=http://imageshack.us/photo/my-images/821/ramoncopy2.jpg/:30wh0amz][img:30wh0amz]http://img821.imageshack.us/img821/2900/ramoncopy2.jpg[/img:30wh0amz][/url:30wh0amz]\n\nUploaded with [url=http://imageshack.us:30wh0amz]ImageShack.us[/url:30wh0amz]", "time": "03:14", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "wmormar" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "sin palabras.\nacompañemos, a la familia en este dificil momento.\nDescance en paz Ramon.", "time": "03:27", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "sysctrl2" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Me quede helado y sin palabras..\n\nQue triste noticia saber que se nos estan adelantando, Descanse en Paz. <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: -->", "time": "04:32", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "cuatecatl82" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Triste noticia. Mi sentido pésame a la familia.", "time": "06:02", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Manuel Valdenebro" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi Sentido Pesame a Toda Su Familia\nTriste PEro Asi Es La Vida\nCarlos I. De La Rosa", "time": "06:12", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "carloslmm" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Me dolio esta triste noticia <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n\nRamon fue muy atento y paciente ayudándome\n\nRamon te extrañaremos [img:393rd22n]http&#58;//forums&#46;fivetechsupport&#46;com/download/file&#46;php?avatar=935_1282849879&#46;jpg[/img:393rd22n] descansa en paz", "time": "06:21", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "AIDA" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi mas sentido pesame a la familia.\n\nDescanse en paz.", "time": "11:10", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "fgondi" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Descanse en paz!", "time": "12:37", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "thefull" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Un fuerte abrazo a su familia. Una pena enorme.", "time": "12:59", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "horacio" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Tuve la oportunidad de tener algunos contactos con este colega, y me alcanzó para comprobar su maravillosa forma de ser y su sencibilidad.\n\nMi más sentido pésame a la familia, descansa en paz amigo. <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "13:11", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "jose_murugosa" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Realmente que triste noticia.\n\nMis mas sentidos pésame a todos sus allegados.\n\nDescanza en PAZ querido Ramón, extrañaremos tus valiosos aporte al FORO.\n\nAdhemar", "time": "14:15", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "acuellar" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "QEPD Ramón, \n\nMi muy sentido pésame a su familia y seres queridos...", "time": "14:40", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Bayron" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "que triste noticia. \n\nQEPD Ramón,\nMi muy sentido pésame a su familia y seres queridos", "time": "15:20", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Patricio Avalos Aguirre" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Que en paz Descanse, y mucha resignación por la perdida para\nla familia.", "time": "17:20", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "JavierVital" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Ramón te adelantaste, un día estaremos contigo.\n\nMi apoyo y solidaridad a la familia.", "time": "18:52", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "RSalazarU" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi mas sentido pésame a su familia y pronta resignación.. algún dia por alla nos veremos...\nR.I.P.", "time": "19:19", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Francisco Horta" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi mas sentido pesame a la famila,\n\nDescanza en Paz Ramon.", "time": "20:05", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "devtuxtla" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "El mas sentido pesame a su familia.\n\nDescanse en paz!", "time": "20:09", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "ruben Dario" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo Ramón, que Dios esté contigo en este nuevo viaje.\n\nUna abrazo y mucha fortaleza a su familia.\n\nCarlos Gallego", "time": "23:06", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Cgallegoa" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Que el señor todo poderoso te acoga en su santo seno.. Amén.\nDescansa en Paz Hermano", "time": "23:07", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "pablovidal" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Descansa en Paz compañero,,, \nWilli Quintana", "time": "04:57", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Willi Quintana" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Siempre se van los mejores.\nUn fuerte abrazo, amigo, descansa en paz.\n\nRicardo Blanco.", "time": "23:10", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "rlblanco" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos del foro, comparto con ustedes el sentimiento de dolor que causa la partida de una amigo, un colega, un ser querido, y extiendo a sus familiares este sentir de dolor y les exhorto a reflexionas en que la muerte pude ser un nuevo nacer \"Juan 11:25 ->[color=#0000BF:doipe62t][b:doipe62t]Le dijo Jesús: Yo soy la resurrección y la vida; el que cree en mí, aunque esté muerto, vivirá.[/color:doipe62t][/b:doipe62t] Hermosa reflexión para quienes tienen definido su condición espiritual.\n\nEl Señor Bendiga a todos los integrantes de este foro cuando sus sentimientos son los de construir \n\ncordialmente\n\nJairo", "time": "06:25", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Jairo Barbosa" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Mis sentido pésame a la familia. Que descanse en paz.", "time": "14:20", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "FranciscoA" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Teníamos pendiente con él y Carlos Vargas, una reunión de Fivewiners y fortalecer lazos de Amistad. Pude hablar con él, pero no se concretó la reunión.\n\nMi sentido pésame por la familia, que Dios le guarde y le tenga en su presencia.", "time": "15:50", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "jcenteno" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi mas sentido pesame a su familia.\n\nSaludos desde Brasil", "time": "14:12", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Kleyber" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi mas sentido pesame a su familia\nPaz en su tumba \nUn abrazo desde Quito Ecuador", "time": "14:36", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "wilsongamboa" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Mi sentido pesame y condolencias a su familia y amigos\n\nDesde Chile\nAdolfo", "time": "16:53", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "Adolfo" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2011-12-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Que dios le tenga en la gloria....\n\nmis mas sentido sentimiento de pesar por la perdida de un amigo.", "time": "21:08", "topic": "Amigos, no me gusta ser portador de tan triste noticia...", "username": "mag071" } ]
Amigos, no me gusta ser portador de tan triste noticia...
[ { "date": "2007-01-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nAlguien tiene ya alguna utilidad de BackUp hecha en Harbour ?\n\nO alguien conoce algun a utilidad (desde linea de comandos)\npara usar con Harbour. ?\n\nMuchas gracias.\n\nRuben Fernandez.", "time": "16:54", "topic": "Amigos: Seria posible BackUp con Harbour.", "username": "Ruben Fernandez" } ]
Amigos: Seria posible BackUp con Harbour.
[ { "date": "2007-01-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Utiliza la opcion buscar del foro para la palabra \"hbzip\". Eso de mostrará todos los temas referidos a copias de seguridad que se han transmitido. En alguno de ellos vas a encontrar incluso los codigos para hacer copias de seguridad... con xHarbour (harbour estaba limitado para hacer copias de seguridad, antes, no se si seguira hasta la fecha)", "time": "19:27", "topic": "Amigos: Seria posible BackUp con Harbour.", "username": "Armando Picon" } ]
Amigos: Seria posible BackUp con Harbour.
[ { "date": "2007-01-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Rubén:\n\nMira en <!-- w --><a class=\"postlink\" href=\"http://www.backupbuilder.com\">www.backupbuilder.com</a><!-- w -->. \n\nAhí el buen amigo Timm ha dejado una herramienta\nque puedes usar desde tu app o desde la linea de comandos\n\nAhhhh y es gratuita.\n\nSaludos", "time": "19:57", "topic": "Amigos: Seria posible BackUp con Harbour.", "username": "Armando" } ]
Amigos: Seria posible BackUp con Harbour.
[ { "date": "2007-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias a los dos Armando.\n\nSaludos.\n\nRuben Fernandez.", "time": "13:34", "topic": "Amigos: Seria posible BackUp con Harbour.", "username": "Ruben Fernandez" } ]
Amigos: Seria posible BackUp con Harbour.
[ { "date": "2009-01-28", "forum": "Utilities / Utilidades", "text": "<!-- m --><a class=\"postlink\" href=\"http://www.ammyy.com/en/\">http://www.ammyy.com/en/</a><!-- m -->\n\n[b:13tmna3i]Things attracted me [/b:13tmna3i]\n\n1) It is a free remote control software\n2) A replacement for expensive TeamViewer ( Non commercial use is free in TeamViewer)\n3) Similiar to TeamViewer, ie No need for Real IP and IP forwarding. No installtion required. Just run the exe\n4) Very small in size. Only 144KB\n5) I Found Ammyy a bit slow compared to TeamViewer. May be due to the high Internet traffic on my network while I tested\n\nIt has 2 modes Public Router mode (Like TeamViewer) and a Private router mode. I tested both and working fine\n\n[b:13tmna3i]As per the site[/b:13tmna3i]\n\nAmmyy Admin is a highly reliable and very friendly tool for remote computer access. You can provide remote assistance, remote administration or remote teaching for your clients, employees and friends regardless of their location. Ammyy Admin connects remote computers within seconds without any installation or configuration. You can view and/or control (using your keyboard and mouse) any applications running on the remote computers.\n\nRegards\n\nAnser", "time": "13:10", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "anserkk" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2009-01-29", "forum": "Utilities / Utilidades", "text": "I tried setting up a Private Router and connected PC's in different geographical areas. I found that the performance is much better than using the public router.\nThe speed and performance is really good.\n\nRegards\n\nAnser", "time": "09:12", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "anserkk" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2009-01-29", "forum": "Utilities / Utilidades", "text": "Anser,\n\nthere are two files at the ammyy website, admin.exe and router.exe.\n\nI want to do remote support for a friend im the same city.\nCould you please tell me which of these programs are needed and how to set up them?\n\nMany thanks for your tips.\nRegards,\nDetlef", "time": "11:31", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "Detlef Hoefner" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2009-01-29", "forum": "Utilities / Utilidades", "text": "Dear Mr.Detlef Hoefner,\n\n[quote:2i49jmyt]Could you please tell me which of these programs are needed ?[/quote:2i49jmyt]\nIf you are goint to use a Public router (Supported by AMMYY )then you need only [color=#0000FF:2i49jmyt]AMMYY_Admin.exe[/color:2i49jmyt]\n\n[color=#0000FF:2i49jmyt]AMMYY_Router.exe[/color:2i49jmyt] is to be used only if you are going to have your own Private router setup.\n\nFor the time being it is better to use the Public router (AMMYY_Admin.exe). And once you get familiar and need more performance you may use your Private Router (AMMYY_Router.exe )\n\n[quote:2i49jmyt]How to set up them?[/quote:2i49jmyt]\n\n[b:2i49jmyt][color=#FF0000:2i49jmyt]Assuming that you are trying to access your freinds desktop thru Ammyy[/color:2i49jmyt][/b:2i49jmyt]\n\n[b:2i49jmyt][color=#0040FF:2i49jmyt][u:2i49jmyt]In your PC do the following[/u:2i49jmyt][/color:2i49jmyt][/b:2i49jmyt]\n\n[b:2i49jmyt]1)[/b:2i49jmyt] Run AMMYY_Admin.exe\n[b:2i49jmyt]2)[/b:2i49jmyt] Please take note of the[color=#0000FF:2i49jmyt] ID [/color:2i49jmyt]shown in the Text Box. This is required \n[b:2i49jmyt]2)[/b:2i49jmyt] Goto the Menu[color=#0000FF:2i49jmyt] AMMYY[/color:2i49jmyt] -> [color=#0000FF:2i49jmyt]Settings[/color:2i49jmyt]\n[b:2i49jmyt]3)[/b:2i49jmyt] On the Ammyy settings dialog, On the [color=#0000FF:2i49jmyt]Routers[/color:2i49jmyt] Group choose [color=#0000FF:2i49jmyt]Public[/color:2i49jmyt] and press [color=#0000FF:2i49jmyt]OK button[/color:2i49jmyt]. That's all at your end\n\n[b:2i49jmyt][color=#0040FF:2i49jmyt][u:2i49jmyt]At your freinds PC[/u:2i49jmyt][/color:2i49jmyt][/b:2i49jmyt]\n\n[b:2i49jmyt]1)[/b:2i49jmyt] Ask your friend to do the above given steps in his PC\n[b:2i49jmyt]2) [/b:2i49jmyt]Ask him to let you know the [color=#0000FF:2i49jmyt]ID[/color:2i49jmyt] shown in his Ammyy Admin screen. (This can be automated later)\n[b:2i49jmyt]3) [/b:2i49jmyt]Ask him to click on the [color=#0000FF:2i49jmyt]Start button[/color:2i49jmyt] available in the [color=#0000FF:2i49jmyt]Tab Client[/color:2i49jmyt]\n\n[b:2i49jmyt][color=#0040FF:2i49jmyt][u:2i49jmyt]Now at your PC[/u:2i49jmyt][/color:2i49jmyt][/b:2i49jmyt]\n\n[b:2i49jmyt]1)[/b:2i49jmyt] Choose the [color=#0000FF:2i49jmyt]Operator Tab[/color:2i49jmyt]\n[b:2i49jmyt]2)[/b:2i49jmyt] Type the Client ID and click the [color=#0000FF:2i49jmyt]Connect button[/color:2i49jmyt]. That's all\n\nOnce you click [color=#0000FF:2i49jmyt]Connect Button[/color:2i49jmyt], you friends PC will ask whether to allow you, he has to approve it. (This part can be automated, so that in future it can be connected without any user intervention. The Ammyy can be run as a service also)\n\nThis can be used to support you clients without any software licencing cost\n\n[u:2i49jmyt]I have found that using a Private Router gives much more performance[/u:2i49jmyt]\n\nI believe that by default the setting is to use Public Router, which means you don't have to do anything. \n[b:2i49jmyt]1)[/b:2i49jmyt] Ask your friend to Run [color=#0000FF:2i49jmyt]AMMYY_Admin.Exe[/color:2i49jmyt]\n[b:2i49jmyt]2)[/b:2i49jmyt] Ask your friend to let you know his [color=#0000FF:2i49jmyt]ID[/color:2i49jmyt]\n[b:2i49jmyt]3)[/b:2i49jmyt] Ask your friend to Click on the[color=#0000FF:2i49jmyt] Start Button[/color:2i49jmyt] in the [color=#0000FF:2i49jmyt]Client Tab[/color:2i49jmyt]. That's all\n[b:2i49jmyt]4)[/b:2i49jmyt] In your PC you run [color=#0000FF:2i49jmyt]AMMYY_Admin.Exe[/color:2i49jmyt]\n[b:2i49jmyt]5)[/b:2i49jmyt] Type your Friend's [color=#0000FF:2i49jmyt]ID[/color:2i49jmyt] and Click on the [color=#0000FF:2i49jmyt]Connect Button[/color:2i49jmyt] on the [color=#0000FF:2i49jmyt]Operator Tab[/color:2i49jmyt]\n\nHope it is clear to you.\n\nRegards\n\nAnser", "time": "11:50", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "anserkk" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2009-02-03", "forum": "Utilities / Utilidades", "text": "Anser,\n What's involved in setting up a private router? Could you elaborate? \n\nThanks. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "04:03", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "hua" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2009-02-03", "forum": "Utilities / Utilidades", "text": "Dear Mr.Harvey,\n\n[quote:1vq8v5v3]What's involved in setting up a private router? Could you elaborate? [/quote:1vq8v5v3]\n\nBy default Ammyy will be using thier router setup (Public Router, Similiar to Teamviewer) which is easy to setup. We can have our own Router setup, which is more efficient (according to me).\n\nPrivate router is nothing different. You need to have a Static IP at the location where u r planning to run the Private router. In one of your servers/PC the Ammyy_router.exe will be running and all your clients will use Private router with your router's Static IP. You should also designate a port to be used by the router. On your router (which does the NAT) you should forward all incoming (Ammyy router port) traffic to the PC running the Ammyy_Router.Exe\n\nI feel it is more secure and there is considerable performance difference.\n\nRegards\n\nAnser", "time": "06:57", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "anserkk" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2009-02-03", "forum": "Utilities / Utilidades", "text": "Thanks Anser. I think I more or less get the picture now.", "time": "08:12", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "hua" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2020-08-17", "forum": "Utilities / Utilidades", "text": "Yes, Ammyy Admin is a good remote desktop software. Alternatively, you may have a look at on premise R-HUB remote support servers for remotely controlling computers from anywhere anytime. It is easy to use and works well.", "time": "06:48", "topic": "Ammyy : A free remote control software. No IP forward req.", "username": "Holo3" } ]
Ammyy : A free remote control software. No IP forward req.
[ { "date": "2019-10-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nIs there a way to see how many users open a FWH program on a network.\nI know I can make a counter in a database that increase everytime that program is executed, en decrease while exiting.\nThe problem there can be that when the program crash, or when the network-connection is broken, the counter is wrong.", "time": "21:10", "topic": "Amount of users on network", "username": "Marc Vanzegbroeck" } ]
Amount of users on network
[ { "date": "2019-10-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi, please try this:\n\nThe UserLogging function creates the txt file for user control when it enters the program and deletes it when it exits.\nTo view all connected users, you can use the ShowConectedUsers function.\n( Idea tomada de un usuario aqui en el foro: hmpaquito)\n<!-- l --><a class=\"postlink-local\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=6&t=16001&hilit=usuarios+conectados&sid=445b23062ba78d3030099d8213c107bf#p82909\">viewtopic.php?f=6&t=16001&hilit=usuarios+conectados&sid=445b23062ba78d3030099d8213c107bf#p82909</a><!-- l -->\n[code=fw:3vqi21xx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//----------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//USUARIOS CONECTADOS    --  Francisco J. Alegria P. Sept/2010</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//Ctrl usuarios activos en este programa</span><br /><span style=\"color: #00C800;\">Function</span> UserLogging<span style=\"color: #000000;\">&#40;</span>lNew<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cDirUserLog := cPathDef+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\U</span>SERSLOG\"</span><br /><span style=\"color: #00C800;\">local</span> cUserLog<br /><span style=\"color: #00C800;\">local</span> cEquipo:=NetName<span style=\"color: #000000;\">&#40;</span>.f.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> nHand, FO_SHARED := <span style=\"color: #000000;\">64</span><br /><br /><span style=\"color: #00C800;\">If</span> !lIsDir<span style=\"color: #000000;\">&#40;</span>cDirUserLog<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">//creamos el sub-dir</span><br />   lMkDir<span style=\"color: #000000;\">&#40;</span>cDirUserLog<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #B900B9;\">//cNombUser es static, y se toma del fich de usuarios</span><br />cUserLog := cDirUserLog+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span>+Substr(cNombUser,1,12)+cEquipo+\"</span>.log<span style=\"color: #ff0000;\">\"<br /><br />If lNew  //Entrando<br />  nHand := FCreate( cUserLog )<br /><br />  FWrite(nHand, cNombUser + CRLF+;       //usuario del programa<br />                cEquipo   + CRLF+\"</span><span style=\"color: #ff0000;\">\")       //nombre del equipo<br />  FClose(nHand)<br /><br />  //Lo abrimos en modo shared. (nHandUserLog es static)<br />  //Cuando se requiere ver los conectados al programa, se trata de abrir en exclusivo,<br />  //y si no se puede, es que el usuario esta conectado al programa. (Ver ShowConnectedUsers())<br />  nHandUserLog := FOpen( cUserLog, FO_SHARED ) // abrimos  el fichero compartido<br /><br />Else  //Saliendo<br />   FClose(nHandUserLog)<br />   Ferase(cUserLog)<br />Endif<br /><br />Return nil<br /><br />/* --------------------------------------------------------------------<br />//Fileio.ch<br />OPEN MODES:     <br />FO_READ      0  Open file for reading <br />FO_WRITE     1  Open file for writing<br />FO_READWRITE 2  Open file for reading and writing<br /><br />SHARING MODES:<br />FO_COMPAT    0 Compatibility mode<br />FO_EXCLUSIVE 16 Exclusive use<br />FO_DENYWRITE 32 Prevent other applications from writing<br />FO_DENYREAD  48 Prevent other applications from reading<br />FO_DENYNONE  64 Allow others to read or write<br />FO_SHARED    64 Same as FO_DENYNONE<br /> -------------------------------------------------------------------- */<br /><br />//----------------------//Mostrar usuarios activos en este programa<br />Function ShowConnectedUsers()<br />local cDirUserLog := cPathDef+\"</span>\\USERSLOG<span style=\"color: #ff0000;\">\"<br />local aDir := DIRECTORY(cDirUserLog + \"</span>\\*.*<span style=\"color: #ff0000;\">\", )<br />local nHand, aActiveUsers:={}, cLogText, cFich<br />local cUserName,cComputName<br />local FO_EXCLUSIVE:=16<br /><br />AEVAL( aDir, {|aFich| cFich:=cDirUserLog+\"</span>\\<span style=\"color: #ff0000;\">\"+aFich[F_NAME],;<br />       if( nHand := FOpen( cFich, FO_EXCLUSIVE ) < 0,;  //si no se abre exclusivo es que usuario esta conectado.<br />         ( cLogText := MemoRead(cFich),;<br />           cUserName   := Trim(MemoLine(cLogText, 254,1)),;<br />           cComputName := Trim(MemoLine(cLogText, 254,2)),;<br />           aadd( aActiveUsers, {cUserName,cComputName} ) ),;<br />           FClose(nHand) ) } )<br /><br />XBrowse(aActiveUsers,\"</span>Usuarios conectados a <span style=\"color: #ff0000;\">\"+cExeName)<br />Return nil<br /></span></div>[/code:3vqi21xx]\nRegards.", "time": "16:30", "topic": "Amount of users on network", "username": "FranciscoA" } ]
Amount of users on network
[ { "date": "2019-10-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\n\nThank you for the reply.\nNow I have already something like that, but instead of saving it to a file, I save it in the database.\nThe problem is that when the program is started, it save it to the database, but when the connecting is lost, without exiting the program first, or if the program crashed, the data is still in the database.\nSo, the other users think that the user is still in the program.\n\nThe only way that I can remove it by starting the program again from the same PC/USER.", "time": "17:21", "topic": "Amount of users on network", "username": "Marc Vanzegbroeck" } ]
Amount of users on network
[ { "date": "2019-10-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Marc,\n\nI don't sure, but I think one way can be to lock a record in a table (dbf) users while the user is logged, when the user logout, unlock the record, I think (no sure) when client lost the conection, the record is unlocked automatlicaly, you can test \n\nsaludos\n\nMarcelo", "time": "21:08", "topic": "Amount of users on network", "username": "Marcelo Via Giglio" } ]
Amount of users on network
[ { "date": "2013-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "If you need to convert amount to words, I have a nice code ready for this purpose.\n\nExample: Net Amount: 2500.00\n\nIn Words: Two Thousand Five Hundred Only\n\nPlease inform if anyone require this.", "time": "07:31", "topic": "Amount to words", "username": "compaqt" } ]
Amount to words
[ { "date": "2013-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:1w2j3mjn]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=25450&p=138694&hilit=convertir+numeros+a+letras#p138694[/url:1w2j3mjn]", "time": "10:28", "topic": "Amount to words", "username": "cnavarro" } ]
Amount to words
[ { "date": "2013-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "*-------------------------------------------------------------------------------*\nfunction fig2wrd( nNum, cCurr, cPaise )\nlocal cNum := i2c( nNum ), cRet := '', cDec := ''\ncCurr := iif( cCurr = NIL, 'Rupees', cCurr ) + ' '\ncPaise := iif( cPaise = NIL, 'Paise' , cPaise ) + ' '\n\nif '.' $ cNum\n cDec := substr( cNum, at( '.', cNum ) + 1 )\nendif\n \nnNum := int( nNum )\nif nNum > 0\n cRet := cCurr\nendif\ncRet += wrd_Crores( nNum )\n\nif .not. empty( cDec )\n cRet := alltrim( cRet )\n cRet += ' And ' + cPaise\n cRet += wrd_Tens( padr( cDec, 2 ) )\nendif\n\nif .not. empty( cRet )\n cRet := alltrim( cRet )\n cRet += ' Only'\nendif\nreturn( cRet )\n*-------------------------------------------------------------------------------*\nstatic Function wrd_Unit( nNum, cPost )\nlocal cRet := ''\nnNum := iif( valtype( nNum ) = 'C', val( nNum ), nNum )\ncPost := iif( cPost = NIL, '', cPost )\n\ndo case\n case nNum = 1; cRet := 'One'\n case nNum = 2; cRet := 'Two'\n case nNum = 3; cRet := 'Three'\n case nNum = 4; cRet := 'Four'\n case nNum = 5; cRet := 'Five'\n case nNum = 6; cRet := 'Six'\n case nNum = 7; cRet := 'Seven'\n case nNum = 8; cRet := 'Eight'\n case nNum = 9; cRet := 'Nine'\nendcase\nreturn( cRet + iif( empty( cRet ), '', cPost ) )\n*-------------------------------------------------------------------------------*\nstatic Function wrd_Tens( nNum, cPost )\nlocal cRet := '', cNum\nnNum := iif( valtype( nNum ) = 'C', val( nNum ), nNum )\ncPost := iif( cPost = NIL, '', cPost )\ndo case\n case nNum = 10; cRet := 'Ten'\n case nNum = 11; cRet := 'Eleven'\n case nNum = 12; cRet := 'Twelve'\n case nNum = 13; cRet := 'Thirteen'\n case nNum = 14; cRet := 'Fourteen'\n case nNum = 15; cRet := 'Fifteen'\n case nNum = 16; cRet := 'Sixteen'\n case nNum = 17; cRet := 'Seventeen'\n case nNum = 18; cRet := 'Eighteen'\n case nNum = 19; cRet := 'Nineteen'\n otherwise\n if nNum >= 90; cRet := 'Ninety '\n elseif nNum >= 80; cRet := 'Eighty '\n elseif nNum >= 70; cRet := 'Seventy '\n elseif nNum >= 60; cRet := 'Sixty '\n elseif nNum >= 50; cRet := 'Fifty '\n elseif nNum >= 40; cRet := 'Forty '\n elseif nNum >= 30; cRet := 'Thirty '\n elseif nNum >= 20; cRet := 'Twenty '\n endif\nendcase\nif nNum < 10 .or. nNum > 20\n cNum := i2c( nNum )\n cRet += wrd_Unit( substr( cNum, -1 ) )\nendif\nreturn( cRet + iif( empty( cRet ), '', cPost ) )\n*-------------------------------------------------------------------------------*\nstatic Function wrd_Hundreds( nNum, cPost )\nlocal cRet := '', cNum\nnNum := iif( valtype( nNum ) = 'C', val( nNum ), nNum )\ncNum := i2c( nNum )\ncPost := iif( cPost = NIL, '', cPost )\n\nif nNum > 99\n cNum := substr( cNum, -3, 1 )\n cRet := wrd_Unit( cNum, ' Hundred ' )\nendif\ncNum := i2c( nNum )\ncRet += wrd_Tens( substr( cNum, -2 ) )\nreturn( cRet + iif( empty( cRet ), '', cPost ) )\n*-------------------------------------------------------------------------------*\nstatic Function wrd_Thousands( nNum )\nlocal cRet := '', cNum, nPos := 0, nChar\ncNum := i2c( nNum )\n\nif len( cNum ) >= 5\n nPos := 4\n nChar := 2\nelseif len( cNum ) >= 4\n nPos := 3\n nChar := 1\nendif\nif nPos > 0\n cNum := substr( cNum, len( cNum ) - nPos, nChar )\n\n cRet := wrd_Tens( cNum, ' Thousand ' )\nendif\ncNum := i2c( nNum )\ncRet += wrd_Hundreds( substr( cNum, -3 ) )\nreturn( cRet )\n*-------------------------------------------------------------------------------*\nstatic Function wrd_Lakhs( nNum )\nlocal cRet := '', cNum, nPos := 0, nChar\ncNum := i2c( nNum )\n\nif len( cNum ) >= 7\n nPos := 6\n nChar := 2\nelseif len( cNum ) >= 6\n nPos := 5\n nChar := 1\nendif\nif nPos > 0\n cNum := substr( cNum, len( cNum ) - nPos, nChar )\n\n cRet := wrd_Tens( cNum, ' Lakh ' )\nendif\ncNum := i2c( nNum )\ncRet += wrd_Thousands( substr( cNum, -5 ) )\nreturn( cRet )\n*-------------------------------------------------------------------------------*\nstatic Function wrd_Crores( nNum )\nlocal cRet := '', cNum, nPos := 0, nChar\ncNum := i2c( nNum )\n\nif len( cNum ) >= 10\n nPos := 9\n nChar := 3\nelseif len( cNum ) >= 9\n nPos := 8\n nChar := 2\nelseif len( cNum ) >= 8\n nPos := 7\n nChar := 1\nendif\nif nPos > 0\n cNum := substr( cNum, len( cNum ) - nPos, nChar )\n\n if nChar <= 2\n cRet := wrd_Tens( cNum, ' Crore ' )\n else\n cRet := wrd_Hundreds( cNum, ' Crore ' )\n endif\nendif\ncNum := i2c( nNum )\ncRet += wrd_Lakhs( substr( cNum, -7 ) )\nreturn( cRet )\n*-------------------------------------------------------------------------------*\n*-------------------------------------------------------------------------------*", "time": "10:34", "topic": "Amount to words", "username": "compaqt" } ]
Amount to words
[ { "date": "2013-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "1. Crores and Lakhs are used in India only.\nIt would be better if you can modify the function to millions for international use and post here.\n2. Where is the function I2C(n) ?", "time": "19:05", "topic": "Amount to words", "username": "nageswaragunupudi" } ]
Amount to words
[ { "date": "2013-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "An interesting TIP for Oracle users when they need to spell a number in words in PL/SQL procedure/function or in an SQL statement.\n\nTO_CHAR( TO_DATE( <number>, 'J' ), 'JSP ) -> number in words", "time": "20:26", "topic": "Amount to words", "username": "nageswaragunupudi" } ]
Amount to words
[ { "date": "2010-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos:\n\nTengo un dialogo donde muestro una imagen y unos botones de ampliar y reducir la imagen, hast aqui bien, pero:\n\nComo puedo hacer que seleccionando con el raton una parte de la imagen se me amplie ese trozo unicamente? es como funcionan los programas de diseño. Estoy usando la clase TImage.\n\nMuchas gracias de antemano.\nJLL", "time": "05:07", "topic": "Ampliar Imagen por zona de seleccion", "username": "jll-fwh" } ]
Ampliar Imagen por zona de seleccion
[ { "date": "2010-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos\n\nte dejo un simple ejemplo\n[code=fw:33b3y62k]<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;\">\"Image.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, oImage<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> gcFile<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">22</span>, <span style=\"color: #000000;\">60</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> FWDESCRIPTION + <span style=\"color: #ff0000;\">\" JPG,JIF,GIF,BMP,DIB,RLE,TGA,PCX support!\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SCROLL</span> <span style=\"color: #0000ff;\">ADJUST</span><br /><br />&nbsp; &nbsp;ZoomZone<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oImage <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">28</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Select Image\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> gcFile := GetImage<span style=\"color: #000000;\">&#40;</span> oImage <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">28</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Reload\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> gcFile != <span style=\"color: #00C800;\">NIL</span>, oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> gcFile <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTER</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;\">function</span> GetImage<span style=\"color: #000000;\">&#40;</span> oImage <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> gcFile := cGetFile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Bitmap (*.bmp)| *.bmp|\"</span> + &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"DIB &nbsp; (*.dib)| *.dib|\"</span> + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"PCX &nbsp; (*.pcx)| *.pcx|\"</span> &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"JPEG &nbsp;(*.jpg)| *.jpg|\"</span> + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"GIF &nbsp; (*.gif)| *.gif|\"</span> &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"TARGA (*.tga)| *.tga|\"</span> + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"RLE &nbsp; (*.rle)| *.rle|\"</span> + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"All Files (*.*)| *.*\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,<span style=\"color: #ff0000;\">\"Please select a image file\"</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> gcFile <span style=\"color: #000000;\">&#41;</span> .and. File<span style=\"color: #000000;\">&#40;</span> gcFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> gcFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> gcFile<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> PrintImage<span style=\"color: #000000;\">&#40;</span> oImage <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oPrn<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Image Printing\"</span> PREVIEW<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PAGE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">SayImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oImage <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDPAGE</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDPRINT</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: #00D7D7;\">#define</span> SRCCOPY &nbsp; &nbsp; &nbsp;0x00CC0020<br /><br /><span style=\"color: #00C800;\">CLASS</span> ZoomZone<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> oImage<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> nRow, nCol <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> lPressed<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> LButtonDown<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> LButtonUp<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> SelectZone<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oImage <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> ZoomZone<br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oImage</span> = oImage<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lPressed</span> = .F.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oImage:<span style=\"color: #000000;\">bMMoved</span> &nbsp; &nbsp;= <span style=\"color: #000000;\">&#123;</span>| nRow, nCol | ::<span style=\"color: #000000;\">SelectZone</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oImage:<span style=\"color: #000000;\">bLClicked</span> &nbsp;= <span style=\"color: #000000;\">&#123;</span>| nRow, nCol | ::<span style=\"color: #000000;\">LButtonDown</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oImage:<span style=\"color: #000000;\">bLButtonUp</span> = <span style=\"color: #000000;\">&#123;</span>| nRow, nCol | ::<span style=\"color: #000000;\">LButtonUp</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> LButtonDown<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> ZoomZone<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nRow</span> = nRow<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nCol</span> = nCol<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lPressed</span> = .T.<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;\">METHOD</span> LButtonuP<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> ZoomZone<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hBmp, hBmpOld<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDCDesk := GetDC<span style=\"color: #000000;\">&#40;</span> GetDesktopWindow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDCMem &nbsp;:= CreateCompatibleDC<span style=\"color: #000000;\">&#40;</span> hDCDesk <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDCImg &nbsp;:= ::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nLowRow, nHiRow, nLowCol, nHiCol<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;hBmp = CreateCompatibleBitmap<span style=\"color: #000000;\">&#40;</span> hDCDesk, ::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hBmpOld = SelectObject<span style=\"color: #000000;\">&#40;</span> hDCMem, hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nRow</span> > nRow<br />&nbsp; &nbsp; &nbsp; nLowRow = nRow + <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; nHiRow &nbsp;= ::<span style=\"color: #000000;\">nRow</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span> <br />&nbsp; &nbsp; &nbsp; nLowRow = ::<span style=\"color: #000000;\">nRow</span> + <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; nHiRow &nbsp;= nRow<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nCol</span> > nCol<br />&nbsp; &nbsp; &nbsp; nLowCol = nCol + <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; nHiCol &nbsp;= ::<span style=\"color: #000000;\">nCol</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span> <br />&nbsp; &nbsp; &nbsp; nLowCol = ::<span style=\"color: #000000;\">nCol</span> + <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; nHiCol &nbsp;= nCol<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;StretchBlt<span style=\"color: #000000;\">&#40;</span> hDCMem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">nHeight</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hDCImg, nLowCol, nLowRow, nHiCol - nLowCol, nHiRow - nLowRow, SRCCOPY <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;SelectObject<span style=\"color: #000000;\">&#40;</span> hDCMem, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />&nbsp; &nbsp;DeleteDC<span style=\"color: #000000;\">&#40;</span> hDCMem <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;ReleaseDC<span style=\"color: #000000;\">&#40;</span> GetDesktopWindow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, hDCDesk <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lPressed</span> = .F.<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<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;\">METHOD</span> SelectZone<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> ZoomZone<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDC <br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hDC := &nbsp;::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lPressed</span><br />&nbsp; &nbsp; &nbsp; DrawDotedBox<span style=\"color: #000000;\">&#40;</span> hDC, ::<span style=\"color: #000000;\">nRow</span>, ::<span style=\"color: #000000;\">nCol</span>, nRow , nCol, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oImage</span>:<span style=\"color: #000000;\">ReleaseDC</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: #00D7D7;\">#pragma</span> BEGINDUMP<br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><br />void WndDrawBox<span style=\"color: #000000;\">&#40;</span> HDC hDC, RECT * rct, HPEN hPUpLeft, HPEN hPBotRit <span style=\"color: #000000;\">&#41;</span>;<br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> DRAWDOTEDBOX <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;COLORREF <span style=\"color: #0000ff;\">color</span> = &nbsp;<span style=\"color: #000000;\">&#40;</span> COLORREF <span style=\"color: #000000;\">&#41;</span> hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;HPEN hPen = CreatePen<span style=\"color: #000000;\">&#40;</span> PS_DOT, <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">color</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;rct.<span style=\"color: #0000ff;\">left</span> &nbsp; = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;rct.bottom = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;rct.<span style=\"color: #0000ff;\">right</span> &nbsp;= hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;WndDrawBox<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> HDC <span style=\"color: #000000;\">&#41;</span> hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, &rct, hPen, hPen <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;DeleteObject<span style=\"color: #000000;\">&#40;</span> hPen <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /> </div>[/code:33b3y62k]", "time": "12:10", "topic": "Ampliar Imagen por zona de seleccion", "username": "Daniel Garcia-Gil" } ]
Ampliar Imagen por zona de seleccion
[ { "date": "2010-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Daniel:\n\nQue voy a decir de ti, excepto que eres un genio. Muchas gracias, sin tu ayuda en el foro, estariamos bien jodidos.\n\nYo lo lograba hacer que se marcara la zona con el raton.\n\nMuchas gracias por tu tiempo y ayuda.\n\nP.D Has mirado ya el tema del Cursor en el xBrowse?, bueno cuando lo mires ya me diras\n\nUn saludo\nJLL", "time": "16:47", "topic": "Ampliar Imagen por zona de seleccion", "username": "jll-fwh" } ]
Ampliar Imagen por zona de seleccion
[ { "date": "2013-11-13", "forum": "FiveWin para Harbour/xHarbour", "text": "DAniel,\nWhen I zoom the image iti is wrong...How I can set the % of zoom ?", "time": "13:17", "topic": "Ampliar Imagen por zona de seleccion", "username": "Silvio.Falconi" } ]
Ampliar Imagen por zona de seleccion
[ { "date": "2013-11-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Silvio\n\nthe sample working fine to me...\n\nthe sample work selecting a image area, this image will be zoomed and fill all container area. The sample you can not catch and move the image only select a area to zoom\n\nthe function doing [url=http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_stretchblt:29bdhaed]StretchBlt[/url:29bdhaed] all magic\n\nyou can calculate percent of nWidth and nHeight and set the new value in function StretchBlt", "time": "14:04", "topic": "Ampliar Imagen por zona de seleccion", "username": "Daniel Garcia-Gil" } ]
Ampliar Imagen por zona de seleccion
[ { "date": "2014-08-03", "forum": "To do - WishList / Por hacer - Peticiones", "text": "Buenos dias\nPodria ser posible que al crear el fichero [b:3gqulee0]checkres.txt[/b:3gqulee0] incluyese en la linea o al principio del volcado el programa.EXE que lo genera?\nPor ejemplo\n[quote:3gqulee0]\nAhora obtenemos:\n03/08/2014 11:29:35: FONT,-1844833697,TWINDOWSUI:SRIGHTUPUI(2271)->MAIN(155)\n\nY creo que podría ser interesante:\n03/08/2014 11:29:35: APLICACION.EXE -- FONT,-1844833697,TWINDOWSUI:SRIGHTUPUI(2271)->MAIN(155)\n\n[/quote:3gqulee0]", "time": "12:31", "topic": "Ampliar informacion de checkres.txt", "username": "cnavarro" } ]
Ampliar informacion de checkres.txt
[ { "date": "2014-08-04", "forum": "To do - WishList / Por hacer - Peticiones", "text": "Cristobal,\n\nAñadido para FWH 14.07\n\nSolo hay que cambiar asi esta función en source\\function\\checkres.prg:\n\n[code=fw:hrcxwut2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> CheckRes<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> cInfo := <span style=\"color: #ff0000;\">\"\"</span>, n<br />   <br />   <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aResources <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">if</span> aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> != <span style=\"color: #000000;\">0</span><br />         cInfo = 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: #ff0000;\">\" -- \"</span> + ;<br />                 aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\",\"</span> + AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + ;<br />                  <span style=\"color: #ff0000;\">\",\"</span> + aResources<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> + CRLF<br />         LogFile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"checkres.txt\"</span>, <span style=\"color: #000000;\">&#123;</span> cInfo <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span>   <br /><br />&nbsp; &nbsp;LogFile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"checkres.txt\"</span>, <span style=\"color: #000000;\">&#123;</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: #ff0000;\">\" -- \"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Replicate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"=\"</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>   <br /> </div>[/code:hrcxwut2]", "time": "04:34", "topic": "Ampliar informacion de checkres.txt", "username": "Antonio Linares" } ]
Ampliar informacion de checkres.txt
[ { "date": "2014-08-04", "forum": "To do - WishList / Por hacer - Peticiones", "text": "Antonio, no hay nada mejor que llegar en el momento justo <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nGracias", "time": "18:36", "topic": "Ampliar informacion de checkres.txt", "username": "cnavarro" } ]
Ampliar informacion de checkres.txt
[ { "date": "2014-08-04", "forum": "To do - WishList / Por hacer - Peticiones", "text": "<!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->", "time": "18:41", "topic": "Ampliar informacion de checkres.txt", "username": "Antonio Linares" } ]
Ampliar informacion de checkres.txt
[ { "date": "2008-04-05", "forum": "FiveLinux / FiveDroid (Android)", "text": "Firstly a big thank you to Antonio for his recent help changing default selection when tabbing through GETs. Combined with my workaround for controlling tab order it has made for some nice comments from my end users and made them more productive.\n\nWhilst I was controlling the order when tabbing through GETs and keeping buttons that should not have been tabbed through avoided, there remained the issue of these buttons grabbing the focus when clicked on.\n\nThat was relatively easy to fix by adding the following code to buttons.c\n\n[code:vk0jaexi]HB_FUNC&#40; BTNNOFOCUS &#41; \n&#123;\n gtk_button_set_focus_on_click&#40; GTK_BUTTON&#40; hb_parnl&#40; 1 &#41; &#41;, FALSE &#41;;\n&#125;[/code:vk0jaexi]\n\nand this to button.prg\n\n[code:vk0jaexi] METHOD SetNoFocusOnClick&#40;&#41; INLINE BtnNoFocus&#40; &#58;&#58;hWnd &#41;[/code:vk0jaexi]\n\nnow if you code as follows\n\n[code:vk0jaexi]oBtn&#58;SetNoFocusOnClick&#40;&#41;[/code:vk0jaexi]\n\nthen when you click on oBtn the focus will stay set where it was.\n\nI note that this might be very useful for buttons on toolbars.\n\nAlso a question to Antonio and other users. Should this be an option on BUTTON creation - in other words should @ row, col BUTTON command have a new clause, maybe NOFOCUS, to support such a capability directly rather than code along the following lines\n\n[code:vk0jaexi]@ row, col BUTTON oBtn PROMPT \"Some Prompt\" ACTION&#40; etc\noBtn&#58;SetNoFocusOnClick&#40;&#41;[/code:vk0jaexi]\n\njust do it in one line\n\n[code:vk0jaexi]@ row, col BUTTON \"Some Prompt\" NOFOCUS ACTION&#40; etc[/code:vk0jaexi]\n\nRegards\nDoug\n(xProgrammer)", "time": "10:54", "topic": "An Extra Option for buttons and a Thank You", "username": "xProgrammer" } ]
An Extra Option for buttons and a Thank You
[ { "date": "2010-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Friends,\n\nI was in need of this method like ScrollDate method in TGet Class and I have put little effort on this.\n\nIf anybody feels that this is useful, they can make use of it by adding an additional method in TGet Class :\n\nMETHOD ScrollTime( nDirection ) under METHOD ScrollDate(nDirection)\n\nRegards,\n\n- Ramesh Babu P\n\n[code=fw:3f7mj335]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />* <span style=\"color: #00C800;\">Method</span> Added by RAMESH BABU P <span style=\"color: #0000ff;\">on</span> <span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">-06</span><span style=\"color: #000000;\">-2010</span><br /><span style=\"color: #00C800;\">METHOD</span> ScrollTime<span style=\"color: #000000;\">&#40;</span> nDirection <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TGet<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cFormat, cType<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cTime<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nHours, nMinutes, nSeconds, nPos<br /><br />&nbsp; &nbsp;#ifndef __XPP__<br />&nbsp; &nbsp; &nbsp; cTime := ::<span style=\"color: #000000;\">Value</span><br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; cTime := ::<span style=\"color: #000000;\">VarGet</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp;nPos &nbsp; &nbsp; := ::<span style=\"color: #000000;\">nPos</span><br />&nbsp; &nbsp;cFormat &nbsp;:= Set<span style=\"color: #000000;\">&#40;</span> _SET_TIMEFORMAT, <span style=\"color: #ff0000;\">\"hh:mm:ss\"</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;nHours &nbsp; := VAL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cTime,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nMinutes := VAL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cTime,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nSeconds := VAL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cTime,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cType &nbsp; &nbsp;:= Upper<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Substr</span><span style=\"color: #000000;\">&#40;</span> cFormat, nPos, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> ! cType $ <span style=\"color: #ff0000;\">\"HMS\"</span> .and. nPos > <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; cType = Upper<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Substr</span><span style=\"color: #000000;\">&#40;</span> cFormat, nPos - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> nPos <= <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; nHours += nDirection<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> nHours ><span style=\"color: #000000;\">24</span> .OR. nHours < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHours := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutes := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSeconds := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br /><br />&nbsp; &nbsp; &nbsp; cTime := StrZero<span style=\"color: #000000;\">&#40;</span> nHours, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":\"</span> + StrZero<span style=\"color: #000000;\">&#40;</span> nMinutes, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":\"</span> + StrZero<span style=\"color: #000000;\">&#40;</span> nSeconds, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> nPos ><span style=\"color: #000000;\">3</span> .AND. nPos <= <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp; &nbsp; nMinutes += nDirection<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> nMinutes > <span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHours &nbsp; += <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutes := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; Elseif nMinutes < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutes := <span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHours &nbsp; -= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> nHours < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nHours := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nMinutes := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nSeconds := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; cTime := StrZero<span style=\"color: #000000;\">&#40;</span> nHours, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":\"</span> + StrZero<span style=\"color: #000000;\">&#40;</span> nMinutes, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":\"</span> + StrZero<span style=\"color: #000000;\">&#40;</span> nSeconds, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> Empty<span style=\"color: #000000;\">&#40;</span> cTime <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTime := <span style=\"color: #ff0000;\">\"00:00:00\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> nPos ><span style=\"color: #000000;\">6</span> .AND. nPos <= <span style=\"color: #000000;\">8</span><br />&nbsp; &nbsp; &nbsp; nSeconds += nDirection<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> nSeconds > <span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSeconds := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutes += <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> nMinutes ><span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nMinutes := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nHours += <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; &nbsp; Elseif nSeconds < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSeconds := <span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutes -= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> nMinutes < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nHours -= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nMinutes := <span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> nHours < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nHours := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nMinutes := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nSeconds := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span> <br />&nbsp; &nbsp; &nbsp; cTime := StrZero<span style=\"color: #000000;\">&#40;</span> nHours, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":\"</span> + StrZero<span style=\"color: #000000;\">&#40;</span> nMinutes, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":\"</span> + StrZero<span style=\"color: #000000;\">&#40;</span> nSeconds, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br /><br />&nbsp; &nbsp;Set<span style=\"color: #000000;\">&#40;</span> _SET_TIMEFORMAT, cFormat <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nDirection > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">bMax</span> != <span style=\"color: #00C800;\">NIL</span> .and. cTime > Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bMax</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBeep<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cText</span><span style=\"color: #000000;\">&#40;</span> cTime <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">bMin</span> != <span style=\"color: #00C800;\">NIL</span> .and. cTime < Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bMin</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBeep<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cText</span><span style=\"color: #000000;\">&#40;</span> cTime <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />#ifndef __CLIPPER__<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> cType == <span style=\"color: #ff0000;\">\"H\"</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> cType == <span style=\"color: #ff0000;\">\"M\"</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nPos</span> := <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> cType == <span style=\"color: #ff0000;\">\"S\"</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nPos</span> := Len<span style=\"color: #000000;\">&#40;</span>cTime<span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;end <span style=\"color: #00C800;\">case</span><br />#else<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">&#40;</span> nPos <span style=\"color: #000000;\">&#41;</span><br />#endif<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3f7mj335]", "time": "12:49", "topic": "An addition to Tget Class - METHOD ScrollTime( nDirection)", "username": "RAMESHBABU" } ]
An addition to Tget Class - METHOD ScrollTime( nDirection)
[ { "date": "2010-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Ramesh,\n\nMany thanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "08:49", "topic": "An addition to Tget Class - METHOD ScrollTime( nDirection)", "username": "Antonio Linares" } ]
An addition to Tget Class - METHOD ScrollTime( nDirection)
[ { "date": "2010-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Antonio,\n\nThis is our FWH. No thanks please.\n\nWarm regards,\n\n- Ramesh Babu P", "time": "10:41", "topic": "An addition to Tget Class - METHOD ScrollTime( nDirection)", "username": "RAMESHBABU" } ]
An addition to Tget Class - METHOD ScrollTime( nDirection)
[ { "date": "2020-12-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI have an array like that. First element is variable name, second is variables value.\n\n[code=fw:e6c30anl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Name\"</span>,<span style=\"color: #ff0000;\">\"Hakan\"</span><span style=\"color: #000000;\">&#125;</span>,<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Birthday\"</span>, <span style=\"color: #000000;\">15.11</span><span style=\"color: #000000;\">.1960</span><span style=\"color: #000000;\">&#125;</span>,<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Married\"</span>, .F.<span style=\"color: #000000;\">&#125;</span>,<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Tips\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"aaa\"</span>,<span style=\"color: #ff0000;\">\"bbb\"</span>,<span style=\"color: #ff0000;\">\"ccc\"</span>,<span style=\"color: #ff0000;\">\"ddd\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span>,<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"DoorNumber\"</span>, <span style=\"color: #000000;\">456</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span></div>[/code:e6c30anl]\n\nI want to save this array to one memo field in a record. (DBF) and read again to its variable names.\n\nIs there any simple efficient solution already prepared? \n\nThanks.", "time": "14:19", "topic": "An advice needed to save same variables and its value to mem", "username": "Horizon" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:1ngy4ln4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> TestArr1<span style=\"color: #000000;\">&#40;</span> nOpt <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aVars := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Name\"</span>,<span style=\"color: #ff0000;\">\"Hakan\"</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Birthday\"</span>, <span style=\"color: #ff0000;\">\"15.11.1960\"</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Married\"</span>, .F.<span style=\"color: #000000;\">&#125;</span>, ;<br />                    <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Tips\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"aaa\"</span>,<span style=\"color: #ff0000;\">\"bbb\"</span>,<span style=\"color: #ff0000;\">\"ccc\"</span>,<span style=\"color: #ff0000;\">\"ddd\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"DoorNumber\"</span>, <span style=\"color: #000000;\">456</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">if</span> nOpt = <span style=\"color: #000000;\">2</span><br />      ?  FW_ValToExp<span style=\"color: #000000;\">&#40;</span> aVars <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      <span style=\"color: #0000ff;\">XBrowse</span><span style=\"color: #000000;\">&#40;</span> &<span style=\"color: #000000;\">&#40;</span>FW_ValToExp<span style=\"color: #000000;\">&#40;</span> aVars <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1ngy4ln4]\nBut I would surely use a hash to store the variables", "time": "15:40", "topic": "An advice needed to save same variables and its value to mem", "username": "cnavarro" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-29", "forum": "FiveWin for Harbour/xHarbour", "text": "field->memo := hb_serialize( aVars )\n\n...\n\naVars := hb_deserialize( field->memo )", "time": "17:58", "topic": "An advice needed to save same variables and its value to mem", "username": "Antonio Linares" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you Mr. Navarro, Antonio,\n\nI will look it.", "time": "06:55", "topic": "An advice needed to save same variables and its value to mem", "username": "Horizon" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[u:2pgm7kw8][b:2pgm7kw8]Saving and restoring arrays to and from MemoFields of DBF\n[/b:2pgm7kw8][/u:2pgm7kw8]\nUsing DBFCDX, we can save an array in a memo field like this:\n[code=fw:2pgm7kw8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />FIELD->MEMOFIELD := aVars<br />&nbsp;</div>[/code:2pgm7kw8]\n\nLater, we can read the data into array like this\n[code=fw:2pgm7kw8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aVars := FIELD->MEMOFIELD<br />&nbsp;</div>[/code:2pgm7kw8]\n\nYou can build and run this program to test this:\n[code=fw:2pgm7kw8]<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 />REQUEST DBFCDX<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> aVars := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Name\"</span>,<span style=\"color: #ff0000;\">\"Hakan\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Birthday\"</span>, <span style=\"color: #000000;\">&#123;</span>^ <span style=\"color: #000000;\">1960</span>/<span style=\"color: #000000;\">11</span>/<span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Married\"</span>, .F.<span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Tips\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"aaa\"</span>,<span style=\"color: #ff0000;\">\"bbb\"</span>,<span style=\"color: #ff0000;\">\"ccc\"</span>,<span style=\"color: #ff0000;\">\"ddd\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"DoorNumber\"</span>, <span style=\"color: #000000;\">456</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;SET DATE FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DD.MM.YYYY\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TESTVARS.DBF\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; DBCREATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TESTVARS\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"MYVARS\"</span>, <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .T., <span style=\"color: #ff0000;\">\"VARS\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; DBAPPEND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; CLOSE VARS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// save to memofield</span><br />&nbsp; &nbsp;USE TESTVARS VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp;TESTVARS->MYVARS := aVars<br />&nbsp; &nbsp;CLOSE TESTVARS<br /><br />&nbsp; &nbsp;aVars := <span style=\"color: #00C800;\">nil</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// read array from memofield</span><br />&nbsp; &nbsp;USE TESTVARS VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp;aVars := TESTVARS->MYVARS<br />&nbsp; &nbsp;CLOSE TESTVARS<br /><br />&nbsp; &nbsp;XBROWSER aVars<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2pgm7kw8]\n\n[url=https&#58;//imageshack&#46;com/i/pmCdlvkxp:2pgm7kw8][img:2pgm7kw8]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/Cdlvkx&#46;png[/img:2pgm7kw8][/url:2pgm7kw8]\n\nThis way we can read the saved names and values into an array. I do not think this is what you are looking for. You said:\n[quote:2pgm7kw8]\nI want to save this array to one memo field in a record. (DBF) and read again to its variable names.\n[/quote:2pgm7kw8]\nI understand that you want to read the saved names and values and then create variables with those names and values for use in your application. \n\nThis is possible with PUBLIC or PRIVATE variables but not local or static variables.\n\nIf what I understand is correct, please see the next post.", "time": "15:02", "topic": "An advice needed to save same variables and its value to mem", "username": "nageswaragunupudi" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[u:2xs6oyig][b:2xs6oyig]Using SAVE/RESTORE commands:[/b:2xs6oyig][/u:2xs6oyig]\n\nBefore going into saving and restoring variables to/from memo-fields of DBF, let us review the built-in Clipper commands SAVE/RESTORE. These commands are as old as clipper itself and are intended for saving names and values of variables to disk and restoring variables with values later. The values are saved to disk files with extension MEM by default.\n\nCan save and restore PUBLIC and PRIVATE variables with values Character, Date, Logical and Numeric only. Variables with other values like DateTime, Array, Codeblock, etc. \n\nSyntax:\n[code=fw:2xs6oyig]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SAVE <span style=\"color: #0000ff;\">TO</span> <memFilename> <span style=\"color: #000000;\">&#91;</span>ALL <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">LIKE</span> | EXCEPT <mask><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#93;</span><br />RESTORE <span style=\"color: #0000ff;\">FROM</span> <memFilename> <span style=\"color: #000000;\">&#91;</span>ADDITIVE<span style=\"color: #000000;\">&#93;</span><br />&nbsp;</div>[/code:2xs6oyig]\n\nThis is the test program to save and restore our variables, viz., Name, Birthday, Married, Tips and DoorNumber, using SAVE/RESTORE commands:\n[code=fw:2xs6oyig]<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 />MEMVAR <span style=\"color: #0000ff;\">Name</span>, Birthday, Married, Tips, DoorNumber<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;SET DATE FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DD.MM.YYYY\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> File<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"MYVAR.MEM\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; RESTORE <span style=\"color: #0000ff;\">FROM</span> MYVAR ADDITIVE<br />&nbsp; &nbsp; &nbsp; Tips := &Tips<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">PUBLIC</span> &nbsp; <span style=\"color: #0000ff;\">Name</span> &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"Hakan\"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Birthday := <span style=\"color: #000000;\">&#123;</span>^ <span style=\"color: #000000;\">1960</span>/<span style=\"color: #000000;\">11</span>/<span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Married &nbsp;:= .F., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Tips &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"aaa\"</span>, <span style=\"color: #ff0000;\">\"bbb\"</span>, <span style=\"color: #ff0000;\">\"ccc\"</span>, <span style=\"color: #ff0000;\">\"ddd\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DoorNumber := <span style=\"color: #000000;\">456</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;? <span style=\"color: #0000ff;\">Name</span>, Birthday, Married, DoorNumber<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Use the variables</span><br />&nbsp; &nbsp;EDITVARS <span style=\"color: #0000ff;\">Name</span>,Birthday,Married,DoorNumber<br />&nbsp; &nbsp;XBROWSER Tips FASTEDIT <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Tips\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Finally Save</span><br />&nbsp; &nbsp;Tips := FW_ValToExp<span style=\"color: #000000;\">&#40;</span> Tips <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SAVE <span style=\"color: #0000ff;\">TO</span> MYVAR ALL<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2xs6oyig]\n\nThe SAVE/RESTORE commands are very reliable and in most cases enough for saving and restoring variable names and values across sessions of the same appilcation as well as for communication between applications. A lot simpler than saving to DBF or others.\n\nBefore going to the next post, please do build and run this program. In the first run you will see the original values. Modify the values as you like. In the second run, you will see the modified values.\n\n[url=https&#58;//imageshack&#46;com/i/po2OalEig:2xs6oyig][img:2xs6oyig]https&#58;//imagizer&#46;imageshack&#46;com/img924/4435/2OalEi&#46;gif[/img:2xs6oyig][/url:2xs6oyig]\n\nIf for some reason, you insist on saving to DBF but not to MEM files, please see the next post.", "time": "15:04", "topic": "An advice needed to save same variables and its value to mem", "username": "nageswaragunupudi" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[u:jfhusov8][b:jfhusov8]Saving/Restoring variables and values to/from Memo Field of DBF[/b:jfhusov8][/u:jfhusov8]\n\nThis sample saves the variable names and values to memofield of dbf and restores ane initiates the variables.\n\nThe functionality and behavior are identical to the previous sample.\n\n[code=fw:jfhusov8]<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 />REQUEST DBFCDX<br /><br />#xcommand SAVE VARS <v1><span style=\"color: #000000;\">&#91;</span>,<vN><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">TO</span> FIELD <fld> => <fld> := \\<span style=\"color: #000000;\">&#123;</span> \\<span style=\"color: #000000;\">&#123;</span> <<span style=\"color: #ff0000;\">\"v1\"</span>>, <v1> \\<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#91;</span>,\\<span style=\"color: #000000;\">&#123;</span> <<span style=\"color: #ff0000;\">\"vN\"</span>>, <vN> \\<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#93;</span> \\<span style=\"color: #000000;\">&#125;</span><br />#xcommand RESTORE VARS <span style=\"color: #0000ff;\">FROM</span> FIELD <fld> => AEval<span style=\"color: #000000;\">&#40;</span> <fld>, <span style=\"color: #000000;\">&#123;</span> |a | &<span style=\"color: #000000;\">&#40;</span> a\\<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> \\<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> := a\\<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> \\<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</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;SET DATE FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DD.MM.YYYY\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">PUBLIC</span> <span style=\"color: #0000ff;\">Name</span>, Birthday, Married, Tips, DoorNumber<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"MYVARS.DBF\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; DBCREATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"MYVARS\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"MYVARS\"</span>, <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .T., <span style=\"color: #ff0000;\">\"MYVARS\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; DBAPPEND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; FIELD->MYVARS := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Name\"</span>,<span style=\"color: #ff0000;\">\"Hakan\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Birthday\"</span>, <span style=\"color: #000000;\">&#123;</span>^ <span style=\"color: #000000;\">1960</span>/<span style=\"color: #000000;\">11</span>/<span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Married\"</span>, .F.<span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Tips\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"aaa\"</span>,<span style=\"color: #ff0000;\">\"bbb\"</span>,<span style=\"color: #ff0000;\">\"ccc\"</span>,<span style=\"color: #ff0000;\">\"ddd\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"DoorNumber\"</span>, <span style=\"color: #000000;\">456</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; CLOSE MYVARS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Read and initialize variables from memofield</span><br />&nbsp; &nbsp;USE MYVARS <span style=\"color: #00C800;\">NEW</span> SHARED READONLY VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp;RESTORE VARS <span style=\"color: #0000ff;\">FROM</span> FIELD MYVARS->MYVARS<br />&nbsp; &nbsp;CLOSE MYVARS<br /><br />&nbsp; &nbsp;? <span style=\"color: #0000ff;\">Name</span>, Birthday, Married, DoorNumber<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Use the variables</span><br />&nbsp; &nbsp;EDITVARS <span style=\"color: #0000ff;\">Name</span>,Birthday,Married,DoorNumber<br />&nbsp; &nbsp;XBROWSER Tips FASTEDIT <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Tips\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Finally Save to memofield</span><br />&nbsp; &nbsp;USE MYVARS <span style=\"color: #00C800;\">NEW</span> SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> MYVARS-><span style=\"color: #000000;\">&#40;</span> DbRLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; SAVE VARS <span style=\"color: #0000ff;\">Name</span>, Birthday, Married, Tips, DoorNumber <span style=\"color: #0000ff;\">to</span> FIELD MYVARS->MYVARS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;CLOSE MYVARS<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:jfhusov8]", "time": "15:06", "topic": "An advice needed to save same variables and its value to mem", "username": "nageswaragunupudi" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2020-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you very much for full support. \n\nI have solved my problem with yours great suport. This informations should be in wiki.", "time": "18:22", "topic": "An advice needed to save same variables and its value to mem", "username": "Horizon" } ]
An advice needed to save same variables and its value to mem
[ { "date": "2019-07-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:1z2f0qi9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />REQUEST DBFCDX<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;field STATE,HIREDATE,CITY<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw<br /><br />&nbsp; &nbsp;USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> STATE + STR<span style=\"color: #000000;\">&#40;</span>INT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">&#40;</span>HIREDATE<span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span>*<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#41;</span> + CITY TAG STATEYR <span style=\"color: #0000ff;\">TO</span> TMP MEMORY<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<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;\">-14</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">700</span>,<span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style=\"color: #ff0000;\">\"CUSTOMER\"</span> ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">\"STATE\"</span>, <span style=\"color: #ff0000;\">\"STRZERO(INT(YEAR(HIREDATE)/10)*10,4) AS DECADE\"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"CITY\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span>, <span style=\"color: #ff0000;\">\"HIREDATE\"</span>, <span style=\"color: #ff0000;\">\"SALARY\"</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> FWDArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, FWRArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\t</span>reevh.bmp\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetTree</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">oTree</span>:<span style=\"color: #000000;\">OpenAll</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lDisplayZeros</span> := .f.<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1z2f0qi9]\n\n[url=https&#58;//imageshack&#46;com/i/pn9n7p0Yp:1z2f0qi9][img:1z2f0qi9]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/9n7p0Y&#46;png[/img:1z2f0qi9][/url:1z2f0qi9]", "time": "08:52", "topic": "An easy way to make a tree-browse", "username": "nageswaragunupudi" } ]
An easy way to make a tree-browse
[ { "date": "2019-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Could it be possible to auto-close the old tree on rowchange and open\nthe tree on new rowselection straight with a defined level ?\n\nnormal ( some mouseclicks needed ) :\n1. click : level 1\n2. click : level 2\n3. click : close\n4. click : new row\n c\n[img:rmp82ek7]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Tree6&#46;jpg[/img:rmp82ek7]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "10:37", "topic": "An easy way to make a tree-browse", "username": "ukoenig" } ]
An easy way to make a tree-browse
[ { "date": "2019-07-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nI added 3 quick preview-buttons to Your sample.\nis it possible to change a treelevel on button-action ?.\nI mean close, show level 1 or 2 \n( I used oBrw:oTree:OpenAll() for level 2 )\n\n[img:2uw7yjgl]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Tree5&#46;jpg[/img:2uw7yjgl]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "10:50", "topic": "An easy way to make a tree-browse", "username": "ukoenig" } ]
An easy way to make a tree-browse
[ { "date": "2019-07-13", "forum": "FiveWin for Harbour/xHarbour", "text": "please see these methods\n METHOD OpenAll()\n METHOD Expand( nLevel )\n METHOD Collapse( nLevel )\nin linklist.prg", "time": "10:54", "topic": "An easy way to make a tree-browse", "username": "nageswaragunupudi" } ]
An easy way to make a tree-browse
[ { "date": "2019-07-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank You very much.\nThe infos I've been looking for to switch between the different levels.\n\n[color=#0000FF:1cf254zt][b:1cf254zt]@ 50[/b:1cf254zt],[/color:1cf254zt]20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;\nDATASOURCE \"CUSTOMER\" ;\nCOLUMNS \"STATE\", \"STRZERO(INT(YEAR(HIREDATE)/10)*10,4) AS DECADE\", ;\n\"CITY\", \"FIRST\", \"AGE\", \"HIREDATE\", \"SALARY\" ;\nCELL LINES NOBORDER\n...\n...\n\n [color=#0000FF:1cf254zt] @ 10, 20 BTNBMP PROMPT \"NO TREE\" SIZE 100,30 PIXEL OF oDlg FLAT ;\n ACTION ( oBrw:oTree:Collapse( 1 ), oBrw:Refresh() )\n\n @ 10, 140 BTNBMP PROMPT \"LEVEL 1\" SIZE 100,30 PIXEL OF oDlg FLAT ;\n ACTION ( oBrw:oTree:Expand( 2 ), oBrw:Refresh() )\n\n @ 10, 260 BTNBMP PROMPT \"LEVEL 2\" SIZE 100,30 PIXEL OF oDlg FLAT ;\n ACTION ( oBrw:oTree:OpenAll(), oBrw:Refresh() )[/color:1cf254zt]\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:22", "topic": "An easy way to make a tree-browse", "username": "ukoenig" } ]
An easy way to make a tree-browse
[ { "date": "2019-07-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao,\n\nCould you show us a little/easy sample about how to a xbrowse/tree from an array ?", "time": "15:06", "topic": "An easy way to make a tree-browse", "username": "vilian" } ]
An easy way to make a tree-browse
[ { "date": "2019-07-31", "forum": "FiveWin for Harbour/xHarbour", "text": "obrow2:setTree(otree)\n\t\n\tocol:=obrow2:aCols[ 1 ]\n ocol:cheader:=\"????\"\n ocol:AddBitmap( { \"tree1\", \"tree2\", \"treevh\" } )\n // ocol:cFooter := \"GRAND TOTAL\"\n ocol:nEditType := {||if(::ledit,1,0)}\n ocol:bEditValue := {||odb2:cquery:=\"select * from ac where acid='\"+obrow2:oTreeItem:cPrompt+\"'\",odb2:refresh(),obrow2:oTreeItem:cPrompt}\n // on chang ,to refresh other columns datas\n\n oCol:bOnPostEdit := {|o, v, n|if( n != VK_ESCAPE ,obrow2:oTreeItem:cPrompt := padr(v,nacidlen,\" \") ,)} \n ocol:bpopup:={||acc0501(,,obrow2)}\n // right click call popu menu\n // insert sub grade tree item, insert new tree item, delete tree item \n\n ocol:bLDClickData:={||acc0502(obrow2:otreeitem),obrow2:otreeitem:Toggle(),obrow2:refresh()}\n //ldbl click tree \n // dynamic expand sub trees\n\n\n oCol := obrow2:AddCol()\n\toCol:bStrData := {||odb2:descrip}\n\toCol:cHeader := \"????\"\n\toCol:bEditValue:= {||odb2:descrip}\n\toCol:nEditType:={||if(::ledit.and.!odb2:EOF(),1,0)}\n\toCol:bOnPostEdit := {|o, v, n| if( n != VK_ESCAPE .and. v != odb2:descrip,(odb2:descrip:=v,odb2:save()) , ) }\n\n oCol := obrow2:AddCol()\n\toCol:bStrData := {||odb2:currency}\n\toCol:cHeader := \"??\"\n\toCol:bEditValue:= {||odb2:currency}\n\tocol:nedittype:= {||if(::ledit.and.!odb2:EOF(),EDIT_GET_BUTTON,0)}\n\toCol:bEditBlock := {||currencybrw(odb2:currency)}\n\toCol:bOnPostEdit := {|o, v, n| if( n != VK_ESCAPE .and. v != odb2:currency,(v:=currencybrw(v,.t.),odb2:currency:=v,odb2:SAVE()) , ) }\n\toCol:nWidth := 60\n\n ....\n\n// insert sub grade tree item, insert new tree item, delete tree item \nFUNCTION acc0501(nrow,ncol,obrow2)\nlocal itemid1,omenu2,acid1\n\n MENU oMenu2 popup\n MENUITEM \"????\" ACTION (acid1:=padr(obrow2:otreeitem:cprompt,nacidlen,\" \"),msgget(\"???\",\"\",@acid1),;\n oserver:query(\"insert into ac (acid,currency) select '\"+acid1+\"',currency from currency limit 1 on duplicate key update descrip=descrip\"),;\n if(MYSQL_AFFECTED_ROWS(oserver:nSocket)>0,(obrow2:otreeitem:add(acid1),obrow2:refresh()),))\n MENUITEM \"???? \" ACTION (acid1:=padr(obrow2:otreeitem:cprompt,nacidlen,\" \"),msgget(\"???\",\"\",@acid1),;\n oserver:query(\"insert into ac (acid,facid,currency) select '\"+acid1+\"','\"+obrow2:otreeitem:cprompt+\"',currency from currency limit 1 on duplicate key update descrip=descrip\"),;\n if(MYSQL_AFFECTED_ROWS(oserver:nSocket)>0,(obrow2:otreeitem:addchild(acid1),obrow2:refresh()),))\n MENUITEM \"????\" ACTION (if(msgyesno(\"??????\",\"???\"),(obrow2:odbf:DELETE(),if(!oserver:lerror,(obrow2:otreeitem:DELETE(),obrow2:refresh()),msgstop(\"?????????????????????????\",\"??\"))),))\n ENDMENU \nreturn oMenu2\n\n// dynamic expand sub trees\nFUNCTION acc0502(otreeitem)\nlocal odb1,otreeitem2\nif otreeitem:otree==nil\n \n odb1:=oserver:query(\"select acid from ac where facid='\"+otreeitem:cprompt+\"'\")\n \n while !odb1:EOF()\n otreeitem2:=otreeitem:addchild(odb1:acid)\n \n acc0502(otreeitem2)\n otreeitem2:Toggle()\n odb1:SKIP()\n end\n odb1:end()\n \nend \n\nreturn", "time": "02:41", "topic": "An easy way to make a tree-browse", "username": "ShumingWang" } ]
An easy way to make a tree-browse
[ { "date": "2019-08-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"vilian\":1vt7jgmz]Mr Rao,\n\nCould you show us a little/easy sample about how to a xbrowse/tree from an array ?[/quote:1vt7jgmz]\n[code=fw:1vt7jgmz]<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;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aData, oTree<br />   <span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw<br /><br />   aData    := ;<br />   <span style=\"color: #000000;\">&#123;</span>  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00100\"</span>, <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00100\"</span>, <span style=\"color: #000000;\">01</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00100\"</span>, <span style=\"color: #000000;\">02</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00200\"</span>, <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00200\"</span>, <span style=\"color: #000000;\">01</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00200\"</span>, <span style=\"color: #000000;\">02</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00300\"</span>, <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00300\"</span>, <span style=\"color: #000000;\">01</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00300\"</span>, <span style=\"color: #000000;\">02</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   <span style=\"color: #000000;\">&#125;</span><br /><br />   oTree    := BuildTree<span style=\"color: #000000;\">&#40;</span> aData <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> <span style=\"color: #ff0000;\">\"TAHOMA\"</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">450</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      DATASOURCE oTree ;<br />      COLUMNS <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span> ;<br />      HEADERS <span style=\"color: #ff0000;\">\"ITEM\"</span>, <span style=\"color: #ff0000;\">\"PART\"</span>, <span style=\"color: #ff0000;\">\"VALUE\"</span> ;<br />      PICTURES <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #ff0000;\">\"@L 99\"</span>, <span style=\"color: #ff0000;\">\"9,999.99\"</span> ;<br />      CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">lDisplayZeros</span> := .f.<br />      :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> FWDArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, FWRArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, GetTreeBmps<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">/*<br />      :aCols[ 3 ]:bEditValue  := { || ;<br />         If( oBrw:oTreeItem:nLevel == 1 .and. oBrw:oTreeItem:lOpened, 0, ;<br />             oBrw:oTreeItem:Cargo [ 3 ] ) }<br />*/</span><br />      :<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">1</span>, CLR_YELLOW, CLR_WHITE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #B900B9;\">//</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: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildTree<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oTree, oItem<br />   <span style=\"color: #00C800;\">local</span> cGrp, aRow<br /><br />   TREE oTree<br />   <span style=\"color: #00C800;\">for</span> each aRow in aData<br />      <span style=\"color: #00C800;\">if</span> aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> == cGrp<br />         <span style=\"color: #00C800;\">if</span> oItem:<span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">1</span><br />            TREE<br />         <span style=\"color: #00C800;\">endif</span><br />         TREEITEM oItem <span style=\"color: #0000ff;\">PROMPT</span> aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\"-\"</span> + STRZERO<span style=\"color: #000000;\">&#40;</span> aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                        CARGO aRow<br />      <span style=\"color: #00C800;\">else</span><br />         <span style=\"color: #00C800;\">if</span> oItem != <span style=\"color: #00C800;\">nil</span> .and. oItem:<span style=\"color: #000000;\">nLevel</span> > <span style=\"color: #000000;\">1</span><br />            ENDTREE<br />         <span style=\"color: #00C800;\">endif</span><br />         cGrp  := aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />         TREEITEM oItem <span style=\"color: #0000ff;\">PROMPT</span> cGrp CARGO aRow<br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span><br />   ENDTREE<br /><br />   oTree:<span style=\"color: #000000;\">OpenAll</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> oTree<br />&nbsp;</div>[/code:1vt7jgmz]", "time": "04:21", "topic": "An easy way to make a tree-browse", "username": "nageswaragunupudi" } ]
An easy way to make a tree-browse
[ { "date": "2019-08-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you,\n\nIt's exactly I need <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "11:58", "topic": "An easy way to make a tree-browse", "username": "vilian" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":151gqnqd][quote=\"vilian\":151gqnqd]Mr Rao,\n\nCould you show us a little/easy sample about how to a xbrowse/tree from an array ?[/quote:151gqnqd]\n[code=fw:151gqnqd]<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;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aData, oTree<br />   <span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw<br /><br />   aData    := ;<br />   <span style=\"color: #000000;\">&#123;</span>  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00100\"</span>, <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00100\"</span>, <span style=\"color: #000000;\">01</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00100\"</span>, <span style=\"color: #000000;\">02</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00200\"</span>, <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00200\"</span>, <span style=\"color: #000000;\">01</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00200\"</span>, <span style=\"color: #000000;\">02</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00300\"</span>, <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00300\"</span>, <span style=\"color: #000000;\">01</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   ,  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"P00300\"</span>, <span style=\"color: #000000;\">02</span>,  <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">&#125;</span> ;<br />   <span style=\"color: #000000;\">&#125;</span><br /><br />   oTree    := BuildTree<span style=\"color: #000000;\">&#40;</span> aData <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> <span style=\"color: #ff0000;\">\"TAHOMA\"</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">450</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      DATASOURCE oTree ;<br />      COLUMNS <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span> ;<br />      HEADERS <span style=\"color: #ff0000;\">\"ITEM\"</span>, <span style=\"color: #ff0000;\">\"PART\"</span>, <span style=\"color: #ff0000;\">\"VALUE\"</span> ;<br />      PICTURES <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #ff0000;\">\"@L 99\"</span>, <span style=\"color: #ff0000;\">\"9,999.99\"</span> ;<br />      CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">lDisplayZeros</span> := .f.<br />      :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> FWDArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, FWRArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, GetTreeBmps<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">/*<br />      :aCols[ 3 ]:bEditValue  := { || ;<br />         If( oBrw:oTreeItem:nLevel == 1 .and. oBrw:oTreeItem:lOpened, 0, ;<br />             oBrw:oTreeItem:Cargo [ 3 ] ) }<br />*/</span><br />      :<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">1</span>, CLR_YELLOW, CLR_WHITE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #B900B9;\">//</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: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildTree<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oTree, oItem<br />   <span style=\"color: #00C800;\">local</span> cGrp, aRow<br /><br />   TREE oTree<br />   <span style=\"color: #00C800;\">for</span> each aRow in aData<br />      <span style=\"color: #00C800;\">if</span> aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> == cGrp<br />         <span style=\"color: #00C800;\">if</span> oItem:<span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">1</span><br />            TREE<br />         <span style=\"color: #00C800;\">endif</span><br />         TREEITEM oItem <span style=\"color: #0000ff;\">PROMPT</span> aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\"-\"</span> + STRZERO<span style=\"color: #000000;\">&#40;</span> aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                        CARGO aRow<br />      <span style=\"color: #00C800;\">else</span><br />         <span style=\"color: #00C800;\">if</span> oItem != <span style=\"color: #00C800;\">nil</span> .and. oItem:<span style=\"color: #000000;\">nLevel</span> > <span style=\"color: #000000;\">1</span><br />            ENDTREE<br />         <span style=\"color: #00C800;\">endif</span><br />         cGrp  := aRow<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />         TREEITEM oItem <span style=\"color: #0000ff;\">PROMPT</span> cGrp CARGO aRow<br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span><br />   ENDTREE<br /><br />   oTree:<span style=\"color: #000000;\">OpenAll</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> oTree<br /> </div>[/code:151gqnqd][/quote:151gqnqd]\n\nHi\nI have a tree of two levels (MariaDb's objetc)\nI need to evaluate if the 2nd Level is open. \nIf open, Then I take an action.\nOnly when double click on 2nd Level\nHow I do it? \nThanks", "time": "02:34", "topic": "An easy way to make a tree-browse", "username": "MarioG" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "You can trigger an action on double click with the codeblock\n[code=fw:6p5o9g93]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCol:<span style=\"color: #000000;\">bLDClickData</span> := <span style=\"color: #000000;\">&#123;</span> |r,c,f,col| someaction<span style=\"color: #000000;\">&#40;</span> r,c,f,col <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:6p5o9g93]\n\nInside the function, check for \n[code=fw:6p5o9g93]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">if</span> oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// action</span><br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:6p5o9g93]", "time": "05:41", "topic": "An easy way to make a tree-browse", "username": "nageswaragunupudi" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Good Morning (for me)\nMany Thanks Mr. Rao!\n\nI looked at in TxBrowse, TXBrwColumn and TLinkList class and not find <!-- s:o --><img src=\"{SMILIES_PATH}/icon_surprised.gif\" alt=\":o\" title=\"Surprised\" /><!-- s:o -->Brw:oTreeItem. Where is it?", "time": "12:38", "topic": "An easy way to make a tree-browse", "username": "MarioG" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "XBrowse has DATA oTreeItem", "time": "12:40", "topic": "An easy way to make a tree-browse", "username": "nageswaragunupudi" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks again.\n\nI looked in [url:puneg4fa]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_clase_txbrowse[/url:puneg4fa]", "time": "12:58", "topic": "An easy way to make a tree-browse", "username": "MarioG" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Mr Rao\nI'm using a Tree and it's good\nI'm using the same oTree:MakeTree() that your sample\nbut when i send oTree:CollapseAll()\nit collapse the app\n\n Error occurred at: 20/11/2019, 19:37:33\n Error description: Error BASE/1004 Message not found: TLINKLIST:COLLAPSEALL\n Args:\n [ 1] = O TLINKLIST\n\nStack Calls\n===========\n Called from: => __ERRRT_SBASE( 0 )\n Called from: ../../../tobject.prg => TLINKLIST:ERROR( 0 )\n Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )\n Called from: ../../../tobject.prg => TLINKLIST:MSGNOTFOUND( 0 )\n Called from: ../../../tobject.prg => TLINKLIST:COLLAPSEALL( 0 )\n Called from: D:\\Fuen32\\FeHot\\Source\\FeH_TGes.prg => (b)TGESTION_RESERVAS( 115 )\n\nwhat is wrong?", "time": "01:24", "topic": "An easy way to make a tree-browse", "username": "MarioG" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-21", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"MarioG\":23wsw8ne]Hello Mr Rao\nI'm using a Tree and it's good\nI'm using the same oTree:MakeTree() that your sample\nbut when i send oTree:CollapseAll()\nit collapse the app\n\n Error occurred at: 20/11/2019, 19:37:33\n Error description: Error BASE/1004 Message not found: TLINKLIST:COLLAPSEALL\n Args:\n [ 1] = O TLINKLIST\n\nStack Calls\n===========\n Called from: => __ERRRT_SBASE( 0 )\n Called from: ../../../tobject.prg => TLINKLIST:ERROR( 0 )\n Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )\n Called from: ../../../tobject.prg => TLINKLIST:MSGNOTFOUND( 0 )\n Called from: ../../../tobject.prg => TLINKLIST:COLLAPSEALL( 0 )\n Called from: D:\\Fuen32\\FeHot\\Source\\FeH_TGes.prg => (b)TGESTION_RESERVAS( 115 )\n\nwhat is wrong?[/quote:23wsw8ne]\n\nSorry Mr. Rao\nI 'm seeing in the source; and not exist a Method CollapseAll()", "time": "01:33", "topic": "An easy way to make a tree-browse", "username": "MarioG" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-21", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2bsn2x5p]but when i send oTree:CollapseAll()\n[/quote:2bsn2x5p]\n\nThere is no CollapseAll() method.\n\nUse oTree:Collapse()", "time": "01:59", "topic": "An easy way to make a tree-browse", "username": "nageswaragunupudi" } ]
An easy way to make a tree-browse
[ { "date": "2019-11-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Many Thanks Mr. Rao", "time": "02:55", "topic": "An easy way to make a tree-browse", "username": "MarioG" } ]
An easy way to make a tree-browse
[ { "date": "2005-11-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear friends:\n\nWhere can I found an example of TAnimate class ?.\n\nThanks a lot, Armando", "time": "19:46", "topic": "An example of TAnimate Class", "username": "Armando" } ]
An example of TAnimate Class
[ { "date": "2005-11-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello, Armando\n\nYou can find it Samples\\Win32.prg or Samples\\Win32_.prg\nVery easy. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nRegards,\n\nRichard\n<!-- m --><a class=\"postlink\" href=\"http://www.fivetech.com.tw/\">http://www.fivetech.com.tw/</a><!-- m -->", "time": "21:39", "topic": "An example of TAnimate Class", "username": "Taiwan" } ]
An example of TAnimate Class
[ { "date": "2005-11-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard:\n\nThank you very much, I was looking for as TAnimate.Prg \n\nBest Regards, Armando", "time": "21:58", "topic": "An example of TAnimate Class", "username": "Armando" } ]
An example of TAnimate Class
[ { "date": "2005-11-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello, Armando \n\nYou're Welcome!! <!-- s:P --><img src=\"{SMILIES_PATH}/icon_razz.gif\" alt=\":P\" title=\"Razz\" /><!-- s:P --> \n\nRegards,\n\nRichard", "time": "10:49", "topic": "An example of TAnimate Class", "username": "Taiwan" } ]
An example of TAnimate Class
[ { "date": "2014-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nDoes anyone have an example of using WorkAreas and MT?", "time": "15:32", "topic": "An example of multithreading and Database", "username": "vilian" } ]
An example of multithreading and Database
[ { "date": "2014-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- m --><a class=\"postlink\" href=\"https://docs.google.com/document/d/1xxRphZ5TIGbn5rOWQ_35VVcw8Yex63A4MKXimfq0MVg/edit#\">https://docs.google.com/document/d/1xxR ... 0MVg/edit#</a><!-- m -->\n\nExample multiThread index.\nI want it noticed that it is possible to use MultiThread in index, but, in practice, in most cases it won't cause speed up because the bottleneck is not the CPU.\nSo read for better understanding of MultiThread\n\n[code=fw:wr0y5xcm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*<br />  Example multiThreads index.<br />  One thread by table , and one thread by index.<br />  2010 Rafa Carmona<br /><br />  Thread Main<br />       |--------->  Thhread child table for test.dbf<br />       |                        |----> Thread child index fname<br />       |                        |<br />       |                        |----->Thread child index fcode<br />       |<br />       |--------->  Thhread child table for test2.dbf<br />                               |----->Thread child index fname2<br /><br /><br /> */</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbthread.ch\"</span><br /><br />proc Main<span style=\"color: #000000;\">&#40;</span> uCreate <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Local</span> nSeconds<br />   <span style=\"color: #00C800;\">Local</span> aFiles  := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"test\"</span>, <span style=\"color: #ff0000;\">\"test2\"</span> <span style=\"color: #000000;\">&#125;</span>        <span style=\"color: #B900B9;\">// Arrays files dbf</span><br />   <span style=\"color: #00C800;\">Local</span> aNtx    := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"fname\"</span>, <span style=\"color: #ff0000;\">\"fcode\"</span> <span style=\"color: #000000;\">&#125;</span>,;   <span style=\"color: #B900B9;\">// files index for test</span><br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"fName2\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>           <span style=\"color: #B900B9;\">// files index for test2</span><br />   <span style=\"color: #00C800;\">Local</span> aExpr   := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"name\"</span>, <span style=\"color: #ff0000;\">\"code\"</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"dtos(fecha)+str(code)\"</span> <span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#125;</span>     <span style=\"color: #B900B9;\">// Expresions</span><br />   <span style=\"color: #00C800;\">Local</span> cDbf<br /><br />   <span style=\"color: #00C800;\">if</span> empty<span style=\"color: #000000;\">&#40;</span> lCreate <span style=\"color: #000000;\">&#41;</span><br />      lCreate := <span style=\"color: #ff0000;\">\"0\"</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br />   setmode<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">25</span>,<span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">&#41;</span><br />   cls<br /><br />   <span style=\"color: #00C800;\">if</span> uCreate = <span style=\"color: #ff0000;\">\"1\"</span><br />      ? <span style=\"color: #ff0000;\">\"Create test.dbf and test2.dbf\"</span><br />      dbCreate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"test\"</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"name\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"code\"</span>,<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      use test<br />      <span style=\"color: #00C800;\">while</span> lastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">1000000</span><br />            dbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            field->name := chr<span style=\"color: #000000;\">&#40;</span> recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />            field->code := recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">enddo</span><br />      close<br />      dbCreate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"test2\"</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"fecha\"</span>,<span style=\"color: #ff0000;\">\"D\"</span>,<span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"code\"</span>,<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      use test2<br />      <span style=\"color: #00C800;\">while</span> lastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">1000000</span><br />            dbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            field->fecha := date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            field->code := recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">enddo</span><br />      close<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   cls<br />   <span style=\"color: #B900B9;\">// Threads</span><br />   nSeconds := Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">for</span> each cDbf in aFiles<br />      ? <span style=\"color: #ff0000;\">\"Process.: \"</span> + cDbf<br />      hb_threadStart<span style=\"color: #000000;\">&#40;</span> @aCreateIndexe<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, cDbf, aNtx<span style=\"color: #000000;\">&#91;</span> cDbf:__enumindex <span style=\"color: #000000;\">&#93;</span>,aExpr<span style=\"color: #000000;\">&#91;</span> cDbf:__enumindex <span style=\"color: #000000;\">&#93;</span>, cDbf:__enumindex  <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">next</span><br /><br />   ? <span style=\"color: #ff0000;\">\"Wait for threads ....\"</span><br />   hb_threadWaitForAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ? hb_valTostr<span style=\"color: #000000;\">&#40;</span> Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - nSeconds <span style=\"color: #000000;\">&#41;</span><br /><br />   ? <span style=\"color: #ff0000;\">\"finish\"</span><br /><br /><span style=\"color: #00C800;\">return</span><br /><br /><span style=\"color: #00C800;\">function</span> aCreateIndexe<span style=\"color: #000000;\">&#40;</span> cFile, aNtx, aExpr, nPosDbf <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">Local</span> nContador := <span style=\"color: #000000;\">1</span><br />      <span style=\"color: #00C800;\">Local</span> cFileNtx, cExpr<br />      <span style=\"color: #00C800;\">Local</span> nLong := Len<span style=\"color: #000000;\">&#40;</span> aNtx <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">Local</span> aThreads := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #00C800;\">Local</span> cAlias<br /><br />      use <span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br />      cAlias := <span style=\"color: #0000ff;\">alias</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      hb_dbDetach<span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Libero el alias</span><br /><br />      <span style=\"color: #00C800;\">for</span> each cFileNtx in aNtx<br />          cExpr  := aExpr<span style=\"color: #000000;\">&#91;</span> cFileNtx:__enumindex <span style=\"color: #000000;\">&#93;</span><br />          nContador := <span style=\"color: #000000;\">1</span><br />          nPos := cFileNtx:__enumindex<br />          aadd<span style=\"color: #000000;\">&#40;</span> aThreads, hb_threadStart<span style=\"color: #000000;\">&#40;</span> @crea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, cAlias,cExpr, cFileNtx, nPos, nPosDbf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">next</span><br /><br />      aEval<span style=\"color: #000000;\">&#40;</span> aThreads, <span style=\"color: #000000;\">&#123;</span> |x| hb_threadJoin<span style=\"color: #000000;\">&#40;</span> x <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// wait threads childs</span><br />      hb_dbRequest<span style=\"color: #000000;\">&#40;</span> cAlias, , , .T.<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Restaura el alias</span><br />      close<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />proc crea<span style=\"color: #000000;\">&#40;</span> cAlias, cExpr, cFileNtx, nPos, nPosDbf <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">Local</span> nContador := <span style=\"color: #000000;\">1</span><br /><br />      hb_dbRequest<span style=\"color: #000000;\">&#40;</span> cAlias, , , .T.<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Restaura el alias</span><br /><br />      <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> &<span style=\"color: #000000;\">&#40;</span>cExpr<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">TO</span> &<span style=\"color: #000000;\">&#40;</span>cFileNtx<span style=\"color: #000000;\">&#41;</span> ;<br />       EVAL <span style=\"color: #000000;\">&#123;</span>|| hb_dispOutAt<span style=\"color: #000000;\">&#40;</span> nPosDbf, iif<span style=\"color: #000000;\">&#40;</span> nPos = <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span>,alltrim<span style=\"color: #000000;\">&#40;</span> hb_valtostr<span style=\"color: #000000;\">&#40;</span> nContador<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"GR+/N\"</span> <span style=\"color: #000000;\">&#41;</span>, nContador += INT<span style=\"color: #000000;\">&#40;</span>LASTREC<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span> , .T. <span style=\"color: #000000;\">&#125;</span> ;<br />       EVERY INT<span style=\"color: #000000;\">&#40;</span> LASTREC<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br />      hb_dbDetach<span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>          <span style=\"color: #B900B9;\">// Libera el alias</span><br /><br /><span style=\"color: #00C800;\">return</span><br /> </div>[/code:wr0y5xcm]", "time": "16:18", "topic": "An example of multithreading and Database", "username": "thefull" } ]
An example of multithreading and Database
[ { "date": "2014-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Un ejemplo muy bueno que habrá que guardar como \"oro en paño\"\nGracias Rafa", "time": "17:02", "topic": "An example of multithreading and Database", "username": "cnavarro" } ]
An example of multithreading and Database