messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2006-12-12", "forum": "FiveWin para CA-Clipper", "text": "hola\n\ntengo una version demo de Fivewin quisiera saber si puedo hacer un ejecutable con las librerias que tiene este demo o no es posible. Por favor requiero que me enseñen a hacerlo, tengo el compilador de clipper 5.2 y el blinker demo 5.1 y las librerias que trae la version demo de fivewin. El ejecutable se esta haciendo pero no ejecuta no se si este bien el bli.lnk o que me falta[color=darkred][/color", "time": "01:50", "topic": "Clipper/fivewin", "username": "jaba" } ]
Clipper/fivewin
[ { "date": "2006-12-12", "forum": "FiveWin para CA-Clipper", "text": "Con la versión demo puedes construir ejecutables perfectamente, sólo que saldrá una ventanita diciendo que es la versión demo.\n\nNecesitas una versión de Blinker superior ó igual a la 3.0. Tambien puedes usar el link.exe de Microsoft que es gratuito. Lo puedes decargar desde la página de descargas de <!-- w --><a class=\"postlink\" href=\"http://www.fivetechsoft.com\">www.fivetechsoft.com</a><!-- w -->\n\nEn samples\\build.bat puedes ver como usar Blinker ó link.exe", "time": "08:50", "topic": "Clipper/fivewin", "username": "Antonio Linares" } ]
Clipper/fivewin
[ { "date": "2012-10-09", "forum": "Utilities / Utilidades", "text": "Alguna utilidad [b:tldsfl92]buena bonita y gratis[/b:tldsfl92] para poder tener un disco clonado (o la imagen del S.O. instalada) para no tener que pasarme horas reinstalando el S.O. y asi poder (en unos minutos) volver a tener todo como al principio.\n\nGracias.", "time": "16:14", "topic": "Clonar disco o imagen del S.O. instalado", "username": "JmGarcia" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2012-10-10", "forum": "Utilities / Utilidades", "text": "Puedes usar la Acronis TrueImage ...., \n\nSlds", "time": "05:04", "topic": "Clonar disco o imagen del S.O. instalado", "username": "nnicanor" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2012-10-10", "forum": "Utilities / Utilidades", "text": "Muchas gracias. Parece \"demasiado\" para lo \"poco\" que yo quiero, solo clonar.", "time": "16:17", "topic": "Clonar disco o imagen del S.O. instalado", "username": "JmGarcia" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2012-10-11", "forum": "Utilities / Utilidades", "text": "[url:2gxpdaag]http&#58;//downloadsquad&#46;switched&#46;com/2008/09/05/5-free-apps-to-clone-your-hard-drive/[/url:2gxpdaag]", "time": "10:21", "topic": "Clonar disco o imagen del S.O. instalado", "username": "Antonio Linares" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2012-10-11", "forum": "Utilities / Utilidades", "text": "Antonio, ¿ y cual me recomiendas ?\n\nNavegando, navegando, me he encontrado HDclone \n<!-- m --><a class=\"postlink\" href=\"http://www.hdclone.com/\">http://www.hdclone.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://www.miray.de/products/sat.hdclone.html\">http://www.miray.de/products/sat.hdclone.html</a><!-- m -->\n\nLa versión FREE es bastante interesante.\n[img:1pghq64w]http&#58;//imag&#46;malavida&#46;com/mvimgbig/download/hdclone-911-1&#46;jpg[/img:1pghq64w]", "time": "12:48", "topic": "Clonar disco o imagen del S.O. instalado", "username": "JmGarcia" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2012-10-14", "forum": "Utilities / Utilidades", "text": "Jose María,\n\nyo te recomiendo HDD Raw Copy Tool [url:2nosjubx]http&#58;//hddguru&#46;com/software/HDD-Raw-Copy-Tool/[/url:2nosjubx]\n\nComo pides es gratuito. En esa página encontrarás más utilidades interesantes y gratuitas.\n\nSaludos,\n\nFélix", "time": "19:36", "topic": "Clonar disco o imagen del S.O. instalado", "username": "Baxajaun" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2012-10-14", "forum": "Utilities / Utilidades", "text": "Gracias...\n[quote=\"Baxajaun\":11jb5lgl]yo te recomiendo HDD Raw Copy Tool [url:11jb5lgl]http&#58;//hddguru&#46;com/software/HDD-Raw-Copy-Tool/[/url:11jb5lgl][/quote:11jb5lgl]\nNo encuentro lo que tiene HDclone, que es poder fabricar un disco botable (o pen usb) con el programa de clonar. Esta facilidad viene bien cuando no se tiene disco de arranque.", "time": "21:44", "topic": "Clonar disco o imagen del S.O. instalado", "username": "JmGarcia" } ]
Clonar disco o imagen del S.O. instalado
[ { "date": "2006-10-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos\n\n¿alguien sabría como clonar un objeto, hacer un duplicado del mismo?\n\nUn saludo", "time": "10:44", "topic": "Clonar un objeto", "username": "Paco Garcia" } ]
Clonar un objeto
[ { "date": "2006-10-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Paco,\n\nPrueba __objClone( o )\n\nSaludos,\nJosé Luis Capel", "time": "19:47", "topic": "Clonar un objeto", "username": "jlcapel" } ]
Clonar un objeto
[ { "date": "2006-10-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Supongo que no inicializa metodos ni nada por el estilo, vamos que no llama al constructor.\nLos codebloks ¿se duplican también?\nSaludos", "time": "23:02", "topic": "Clonar un objeto", "username": "Paco Garcia" } ]
Clonar un objeto
[ { "date": "2006-10-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Paco,\n\n[code:y8ptpxt5]Function Main&#40;&#41;\nLOCAL u,v\n\nu &#58;= miClase&#40;&#41;&#58;c&#40;&#41;\nu&#58;s &#58;= \"objeto u\"\n\nv &#58;= __objClone&#40; u &#41;\n\n? v&#58;s // \"objecto u\"\n? v&#58;b&#40;&#41; // 1\n\nRETURN NIL\n\nCLASS miClase\n DATA s\n DATA t\n METHOD a&#40;&#41;\n METHOD B INLINE a&#40;&#41; // esto crea un codeblock\n METHOD c&#40;&#41; \nENDCLASS\n\nMETHOD c&#40;&#41; CLASS miClase\nRETURN Self\n\nMETHOD a&#40;&#41; CLASS miClase\nRETURN 1[/code:y8ptpxt5]\n\n\nSaludos,\nJosé Luis Capel", "time": "15:59", "topic": "Clonar un objeto", "username": "jlcapel" } ]
Clonar un objeto
[ { "date": "2006-10-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias voy a probarlo", "time": "08:25", "topic": "Clonar un objeto", "username": "Paco Garcia" } ]
Clonar un objeto
[ { "date": "2013-07-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI allways use in the beginning of my program\n[code=fw:258wnmat]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oSQL:=CreateObject<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADODB.Connection\"</span><span style=\"color: #000000;\">&#41;</span><br />oSQL:<span style=\"color: #000000;\">ConnectionString</span>:=ADO_SQL_Connectionstring<br />oSQL:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />...<br />...<br /> </div>[/code:258wnmat]\nand at the end\n[code=fw:258wnmat]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oSQL:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oSQL:=<span style=\"color: #00C800;\">nil</span><br /> </div>[/code:258wnmat]\nand that is working very nice.\n\nIn a particual program I want to delete the SQLite-database and do\n\n[code=fw:258wnmat]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oSQL:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oSQL:=<span style=\"color: #00C800;\">nil</span><br />ferase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'.<span style=\"color: #000000;\">\\m</span>yfile.db'</span><span style=\"color: #000000;\">&#41;</span></div>[/code:258wnmat]\nbut the ferase() this returns an error -1\nThis mean that the file is not closed <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nI now if a only return recordsets, I don't need to open the file like that, but I need to execute some SQL-commands (like creating tables, and other commands)\nHow can I close the connection completely with ADO?\n\nThanks", "time": "21:51", "topic": "Close ADO-connection", "username": "Marc Vanzegbroeck" } ]
Close ADO-connection
[ { "date": "2013-07-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\n[quote=\"Marc Vanzegbroeck\":2k389opf][code=fw:2k389opf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oSQL:=<span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2k389opf][/quote:2k389opf]\n\nThis is not needed.\n\n[quote=\"Marc Vanzegbroeck\":2k389opf]How can I close the connection completely with ADO?[/quote:2k389opf]\n\n[code=fw:2k389opf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oSQL:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:2k389opf]\n\nShould be enough. It might be a timing issue. Try to insert a delay between close() and ferase().\n\nEMG", "time": "22:38", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-07-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Marc\n\n ferase requires the full path of the filename it may not be a sql issue.\n\nCheers\n\nColin", "time": "23:36", "topic": "Close ADO-connection", "username": "Colin Haig" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I too confirm the problem.\nI could not find a solution yet.", "time": "05:24", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Colin Haig\":3q6ub0dq]Hi Marc\n\n ferase requires the full path of the filename it may not be a sql issue.\n\nCheers\n\nColin[/quote:3q6ub0dq]\n\nColin,\n\nThis is not the problem, because it's working if I don't open the file before.", "time": "06:26", "topic": "Close ADO-connection", "username": "Marc Vanzegbroeck" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":2nroltdn]\nShould be enough. It might be a timing issue. Try to insert a delay between close() and ferase().\n\nEMG[/quote:2nroltdn]\n\nEnrico,\n\nA delay between close() and ferase() don't work <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> I even tested it with 10 seconds delay...", "time": "06:40", "topic": "Close ADO-connection", "username": "Marc Vanzegbroeck" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\n[quote=\"Marc Vanzegbroeck\":y5tp59lo][quote=\"Enrico Maria Giordano\":y5tp59lo]\nShould be enough. It might be a timing issue. Try to insert a delay between close() and ferase().\n\nEMG[/quote:y5tp59lo]\n\nEnrico,\n\nA delay between close() and ferase() don't work <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> I even tested it with 10 seconds delay...[/quote:y5tp59lo]\n\nWhat did you use for the delay?\n\nEMG", "time": "07:34", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":19mivxk7]\nWhat did you use for the delay?\n\nEMG[/quote:19mivxk7]\n\ndelay(100)", "time": "08:08", "topic": "Close ADO-connection", "username": "Marc Vanzegbroeck" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\n[quote=\"Marc Vanzegbroeck\":2g2zingv][quote=\"Enrico Maria Giordano\":2g2zingv]\nWhat did you use for the delay?\n\nEMG[/quote:2g2zingv]\n\ndelay(100)[/quote:2g2zingv]\n\nTry with SysWait().\n\nEMG", "time": "08:51", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks to EMG\nSysWait(100) worked for me.", "time": "10:43", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":8a3q1uer]Thanks to EMG\nSysWait(100) worked for me.[/quote:8a3q1uer]\nAlso for me <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "10:59", "topic": "Close ADO-connection", "username": "Marc Vanzegbroeck" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao and Marc,\n\nGreat! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "11:36", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "very good! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:55", "topic": "Close ADO-connection", "username": "Antonio Linares" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I wonder about other users having the database open thus preventing deletion. Is there a way to tell? Or, perhaps this is a temp file only created and used by one user?", "time": "14:46", "topic": "Close ADO-connection", "username": "James Bott" } ]
Close ADO-connection
[ { "date": "2013-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":36nr7jy5]I wonder about other users having the database open thus preventing deletion. Is there a way to tell? Or, perhaps this is a temp file only created and used by one user?[/quote:36nr7jy5]\n\nI only use SQLite-database on stand-alone programs.\nFor network-versions I use MySQL. There I don't delete the database-file. Normaly I don't delete any database, but in this paricular program I want the user to be able to delete the SQLite-database, and create an other one...", "time": "14:53", "topic": "Close ADO-connection", "username": "Marc Vanzegbroeck" } ]
Close ADO-connection
[ { "date": "2013-07-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Please try this test program.\nI am able to delete the file \"soon\" after closing the connection.\n[code=fw:2h4gbmpn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"adodef.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oCn<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cDb := <span style=\"color: #ff0000;\">\"test3.db\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oCn &nbsp; := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Connection\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">CursorLocation</span> := adUseClient<br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">ConnectionString</span> := <span style=\"color: #ff0000;\">\"Driver=SQLite3 ODBC Driver;Database=\"</span> + cDb + <span style=\"color: #ff0000;\">\";\"</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;? oCn:<span style=\"color: #000000;\">State</span><br />&nbsp; &nbsp;? File<span style=\"color: #000000;\">&#40;</span> cdb <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oCn := <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp;? file<span style=\"color: #000000;\">&#40;</span> cdb <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;? ferase<span style=\"color: #000000;\">&#40;</span> cdb <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;? file<span style=\"color: #000000;\">&#40;</span> cdb <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2h4gbmpn]\n\nIf the above code is working, why are you not able to erase the file in your program?\n\nWe see one variable oCn ( or whatever ) as the only variable referring to the connection object. But in a large application, it is highly likely that references to the connection object are still retained in some vars or object data which we can not see.\nUnless all references in the application to this Object go out of scope, our application do not entirely give up the connection.", "time": "18:49", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:cefoonoq]Unless all references in the application to this Object go out of scope, our application do not entirely give up the connection.[/quote:cefoonoq]\n\nThen, I assume, as long as you are not using PUBLICs, PRIVATEs, STATICs, and undeclared vars for connection objects, that this would not be a problem? If so, then this would be a good reason to clean up one's code. \n\nI never use PUBLICs, PRIVATEs, or undeclared vars, and rarely use STATICs. This practice has worked well for me.\n\nWe could also try the opposite test--trying things that might prevent the database from closing.\n\nRegards,\nJames", "time": "00:22", "topic": "Close ADO-connection", "username": "James Bott" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\n[quote=\"James Bott\":1ai0lk9x]Then, I assume, as long as you are not using PUBLICs, PRIVATEs, STATICs, and undeclared vars for connection objects, that this would not be a problem?[/quote:1ai0lk9x]\n\nUnfortunately, not. Even \"detached locals\" can keep live reference to an object. As an example:\n\n[code=fw:1ai0lk9x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span>...;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> MYFUNC<span style=\"color: #000000;\">&#40;</span> oRs <span style=\"color: #000000;\">&#41;</span></div>[/code:1ai0lk9x]\n\n<!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG", "time": "07:54", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2gchm2xf]Even \"detached locals\" can keep live reference to an object.[/quote:2gchm2xf]\n\nVery much true. But it is very rare that our programmers in normal course create a \"detached local\" pf the recordset.\n[quote:2gchm2xf]As an example:\n\nCode:\nREDEFINE BUTTON...;\n ACTION MYFUNC( oRs )\n[/Code]\n[/quote:2gchm2xf]\n\nPlease reconsider. This action clause creates a codeblock { || MYFUNC( oRs ) }. \nThe oRs is not detached. This codeblock always uses the current value of oRs in the calling program.\n\nSo there is no detached local in this case to retain a reference to the recordset.\n\nA local (parameter) gets detached when the called program creates a codeblock using the parameter.\n\nExample:\n[code=fw:2gchm2xf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />func callingfunction<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oRs, b<br />   <span style=\"color: #B900B9;\">// create oRs</span><br />   b := CalledFunc<span style=\"color: #000000;\">&#40;</span> oRs <span style=\"color: #000000;\">&#41;</span><br />   Eval<span style=\"color: #000000;\">&#40;</span> b <span style=\"color: #000000;\">&#41;</span><br />   oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oRs := <span style=\"color: #00C800;\">nil</span><br />   Eval<span style=\"color: #000000;\">&#40;</span> b <span style=\"color: #000000;\">&#41;</span><br />   b := <span style=\"color: #00C800;\">nil</span>  <span style=\"color: #B900B9;\">// now the detached local also is released.  ActiveConnection also is closed</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />fun CalledFunc<span style=\"color: #000000;\">&#40;</span> oRs <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oRs:<span style=\"color: #000000;\">ActiveConnection</span>:<span style=\"color: #000000;\">State</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:2gchm2xf]\n\nNow the oRs get detached in the codeblock b. This detached local is live as long as the codeblock b is live. Even after the oRs in the called program is closed and set to nil, still Eval( b ) shows 1 ( meaining the activeconnection is still open). And when b is released by setting to nil or goes out of scope then the detached local ( referring to the recordset) also is released.\n\nOne can say XBrowse creates lots of codeblocks using the oRs.\nActually XBrowse does not create even a single codeblock using oRs received as parameter, but creates all codeblocks using ::oRs. Thereby there is not detached local referring to the recordset.\n\nWhat I observed ( with xHarbour ) is this:\nWhen oRs is assigned to the data of some Object, even after the Object goes out of scope, the reference to oRs in that Object's data is not released.\n\nExample:\n// oRs := Open Recset\n\no := TSomeClass()\no:oRs := oRs\n...\n...\nlater o := nil\nstill the reference of oRs in o:oRs is not released\nThis should have been explicitly released by some destructor method of the TSomeClass\n\nNow thats what I have done.\nTXBrowse's Destroy method sets ::oRs := nil\nTDataRow class is not a control.\nso I created DESTRUCTOR method and released oRs reference there.\nNow I checked and the references to oRs are released cleanly", "time": "09:38", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao,\n\nPlease check the sample below (change table and field name). You will see that LDB is automatically deleted only if you remove the BUTTON.\n\n[code=fw:1uq127uf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00D7D7;\">#define</span> adOpenForwardOnly <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> adOpenKeyset      <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> adOpenDynamic     <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> adOpenStatic      <span style=\"color: #000000;\">3</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> adLockReadOnly        <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> adLockPessimistic     <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> adLockOptimistic      <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> adLockBatchOptimistic <span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> adUseNone   <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> adUseServer <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> adUseClient <span style=\"color: #000000;\">3</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    ? <span style=\"color: #ff0000;\">\"2\"</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oRs := CREATEOBJECT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    oRs:<span style=\"color: #000000;\">CursorLocation</span> = adUseClient<br /><br />    oRs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT * FROM Clienti ORDER BY Cliente\"</span>, <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=clienti.mdb\"</span>, adOpenForwardOnly, adLockReadOnly <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />    @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />           <span style=\"color: #0000ff;\">ACTION</span> TEST2<span style=\"color: #000000;\">&#40;</span> oRs <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    ? <span style=\"color: #ff0000;\">\"1\"</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> TEST2<span style=\"color: #000000;\">&#40;</span> oRs <span style=\"color: #000000;\">&#41;</span><br /><br />    ? oRs:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Contatto\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:1uq127uf]\n\nEMG", "time": "10:11", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Or if you remove oRs from the TEST2() parameter.\n\nEMG", "time": "10:13", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "After oRs:Close()\nset\noRs := nil\nThen immediately ActiveConnection also is closed", "time": "10:21", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao,\n\n[quote=\"nageswaragunupudi\":hprjztvc]After oRs:Close()\nset\noRs := nil\nThen immediately ActiveConnection also is closed[/quote:hprjztvc]\n\nThe point is that oRs can have live references elsewhere in the code. Setting it to NIL doesn't solve the problem, sorry.\n\nEMG", "time": "12:06", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:1i27iv05]The point is that oRs can have live references elsewhere in the code. Setting it to NIL doesn't solve the problem, sorry.\n[/quote:1i27iv05]\nMr Enrico\nThe points I am making are\n\n#1) Once all references to the recordset are gone the active connection also is closed.\n#2) ACTION clause does not create detached local. In the example you gave, the active connection was not closed \"not because the ACTION codeblock\" but because oRs has not still gone out of scope. Your inference from the example is not correct.\nOnce oRs either goes out of scope or set to nil, the active connection is closed.\n\nI am not disputing your point that detached locals hold on reference to the object, but buttons ACTION clause does not.", "time": "12:19", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao,\n\n[quote=\"nageswaragunupudi\":22hhoenl]Mr Enrico\nThe points I am making are\n\n#1) Once all references to the recordset are gone the active connection also is closed.\n#2) ACTION clause does not create detached local. In the example you gave, the active connection was not closed \"not because the ACTION codeblock\" but because oRs has not still gone out of scope. Your inference from the example is not correct.\nOnce oRs either goes out of scope or set to nil, the active connection is closed.[/quote:22hhoenl]\n\nPlease look carefully at my sample. LDB file is still there even after the second message, when oRs has already gone out of scope.\n\nEMG", "time": "13:18", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico and Rao\n\nI tested the oRs:CLose() followed up with oRs := nil and releasing the object did not close the .ldb for me .. however if I inserted oRs:ActiveConnection:Close() .. the .ldb went away.\n\nMy example was just a simple case of opening a table .. reading data and writing back a date value to the table and oRs:CLose() .. no browse, no other controls.\n\nRick Lipkin", "time": "15:22", "topic": "Close ADO-connection", "username": "Rick Lipkin" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico and Rao\n\n[quote:a71an459]\nI tested the oRs:CLose() followed up with oRs := nil and releasing the object did not close the .ldb for me .. however if I inserted oRs:ActiveConnection:Close() .. the .ldb went away.\n[/quote:a71an459]\n\nI need to update this post and let you both know that oRs := nil DOES release the object as well as the connection .. the .ldb does in fact close when you nil out the recordset object!\n\nI went back and looked at my example .. and I had an additional call to a verification table after the above first example.. It does appear that oRs := nil closed the connection.\n\nRick Lipkin", "time": "16:16", "topic": "Close ADO-connection", "username": "Rick Lipkin" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\n[quote=\"Rick Lipkin\":1b90t1fw]I need to update this post and let you both know that oRs := nil DOES release the object as well as the connection .. the .ldb does in fact close when you nil out the recordset object!\n\nI went back and looked at my example .. and I had an additional call to a verification table after the above first example.. It does appear that oRs := nil closed the connection.\n\nRick Lipkin[/quote:1b90t1fw]\n\nI have an application using a browse where setting oRs to NIL does not close LDB.\n\nEMG", "time": "16:22", "topic": "Close ADO-connection", "username": "Enrico Maria Giordano" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rick Lipkin\":2hg1npg5]Enrico and Rao\n\n[quote:2hg1npg5]\nI tested the oRs:CLose() followed up with oRs := nil and releasing the object did not close the .ldb for me .. however if I inserted oRs:ActiveConnection:Close() .. the .ldb went away.\n[/quote:2hg1npg5]\n\nI need to update this post and let you both know that oRs := nil DOES release the object as well as the connection .. the .ldb does in fact close when you nil out the recordset object!\n\nI went back and looked at my example .. and I had an additional call to a verification table after the above first example.. It does appear that oRs := nil closed the connection.\n\nRick Lipkin[/quote:2hg1npg5]\n\nMr Rick\nAdditional Hint:\n\nIf you have used XBrowse to browse the oRs then after closing the browse please do this:\n\n[code=fw:2hg1npg5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrw:<span style=\"color: #000000;\">oRs</span> := <span style=\"color: #00C800;\">nil</span><br />oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oRs := <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2hg1npg5]\n\nFrom the next release of FWH (13.08) XBrowse itself releases the reference and you do not have to release oBrw:oRs by setting to NIL in your code.\n\nActually I have made the modifications after testing. While testing I was continuously monitoring the number of connections remaining open with a timer after execution of each line of code.", "time": "16:44", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rick\n\nI again advise you to reconsider your practice of opening every recordset with connection string.\n\nWhen you specify ConnString in the RecSet's open method, each time ADO opens a separate connection. Even though you release the connection when you close the recordset, ther fact is that you keep as many independent connections to the server open as the number of recordsets in use in your application. \n\nThis causes unnecessary strain on both the dataserver and the network. Better keep one connection open per one instance of the application. We are discussing about 2-tier (client-server) programming where our application directly connects to the dataserver, be it sql server or oracle or whatever. So for 2-tier applications like those we make, open connection once at the outset and use it for all recordsets and close the connection at the end of application.\n\nThere is another well known issue. Opening a connection takes some extratime, which is not necessary to spend every time we open a recordset. Opening recordsets using an already opened connection object is a lot faster.\n\nI heard the concern expressed by some friends that if we keep a connection open all the time, disconnection with the server would crash the application. They think they can prevent this by opening recordset by specifying the conn string. But this is not a solution. This makes things even worse. Instead of keeping only connection open, you are keeping more connections open, because most the time the users are using some recordsets and so many connections are in an open state all the time.\n\nThe practice of opening recset with connstring is more in use in webbased programming. There it is state-less programming. Recset is open, data is used to prepare the web-page, close recset (and also connection) and serve the page. There the programmer is saving coding time and lines of code by specifying connstting in the recset open() method. And most important thing is that web development is always 3-tier programming ( dataserver --> appliction server --> application ). Application server handles connection pooling and for the dataserver application server is just one single user. The connection pooling greatly reduces the strain on the server and also avoids the time taken to open new connection.\n\nWebdevelopment practices (3-tier appln) are not appropriate to our (2-tier) desktop applications.", "time": "17:05", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao\n\nYES .. I have come around to your way of thinking and prior advice along those lines .. I worked a good bit yesterday trying to retro-fit my existing code and I came up with this simple solution ..\n\nMy existing code looks like this\n[code=fw:rb36ad5c]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />xPROVIDER := <span style=\"color: #ff0000;\">\"Microsoft.Jet.OLEDB.4.0\"</span><br />xSOURCE   := cDEFA+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\G</span>room.mdb\"</span><br />xPASSWORD := <span style=\"color: #ff0000;\">\"xxxxxxxxx\"</span><br /><br /><span style=\"color: #00C800;\">IF</span> xDATABASE = <span style=\"color: #ff0000;\">\"A\"</span>  <span style=\"color: #B900B9;\">// ms access</span><br />   xCONNECT := <span style=\"color: #ff0000;\">'Provider='</span>+xPROVIDER+<span style=\"color: #ff0000;\">';Data Source='</span>+xSOURCE+<span style=\"color: #ff0000;\">';Jet OLEDB:Database Password='</span>+xPASSWORD<br /><span style=\"color: #00C800;\">ELSE</span><br />   xCONNECT := <span style=\"color: #ff0000;\">'Provider='</span>+xPROVIDER+<span style=\"color: #ff0000;\">';Data Source='</span>+xSOURCE+<span style=\"color: #ff0000;\">';Initial Catalog='</span>+xCATALOG+<span style=\"color: #ff0000;\">';User Id='</span>+xUSERID+<span style=\"color: #ff0000;\">';Password='</span>+xPASSWORD<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />...<br />...<br /><br />oRsUser := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br />oRsUser:<span style=\"color: #000000;\">CursorType</span>     := <span style=\"color: #000000;\">1</span>        <span style=\"color: #B900B9;\">// opendkeyset</span><br />oRsUser:<span style=\"color: #000000;\">CursorLocation</span> := <span style=\"color: #000000;\">3</span>        <span style=\"color: #B900B9;\">// local cache</span><br />oRsUser:<span style=\"color: #000000;\">LockType</span>       := <span style=\"color: #000000;\">3</span>        <span style=\"color: #B900B9;\">// lockoportunistic</span><br /><br />cSQL := <span style=\"color: #ff0000;\">\"SELECT * From [Staff] Order by [Lname]\"</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br />  oRsUser:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSQL,xCONNECT <span style=\"color: #000000;\">&#41;</span><br />CATCH oErr<br />  <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Error in Opening Staff table\"</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br /> </div>[/code:rb36ad5c]\nRetro-fit code\n[code=fw:rb36ad5c]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// defined at top of Main()</span><br /><br />xPROVIDER := <span style=\"color: #ff0000;\">\"Microsoft.Jet.OLEDB.4.0\"</span><br />xSOURCE   := cDEFA+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\G</span>room.mdb\"</span><br />xPASSWORD := <span style=\"color: #ff0000;\">\"xxxxxxxxx\"</span><br /><br /><span style=\"color: #00C800;\">IF</span> xDATABASE = <span style=\"color: #ff0000;\">\"A\"</span> <span style=\"color: #B900B9;\">// access</span><br />   xSTRING := <span style=\"color: #ff0000;\">'Provider='</span>+xPROVIDER+<span style=\"color: #ff0000;\">';Data Source='</span>+xSOURCE+<span style=\"color: #ff0000;\">';Jet OLEDB:Database Password='</span>+xPASSWORD<br /><span style=\"color: #00C800;\">ELSE</span><br />   xSTRING := <span style=\"color: #ff0000;\">'Provider='</span>+xPROVIDER+<span style=\"color: #ff0000;\">';Data Source='</span>+xSOURCE+<span style=\"color: #ff0000;\">';Initial Catalog='</span>+xCATALOG+<span style=\"color: #ff0000;\">';User Id='</span>+xUSERID+<span style=\"color: #ff0000;\">';Password='</span>+xPASSWORD<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />xConnect := CREATEOBJECT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Connection\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br />   xConnect:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> xString <span style=\"color: #000000;\">&#41;</span><br />CATCH oErr<br />   Saying := <span style=\"color: #ff0000;\">\"Could not open a Global Connection to Database \"</span>+xSource<br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> Saying <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br /><br />...<br />...<br /><br /><span style=\"color: #B900B9;\">// using the same Open() code</span><br />oRsUser := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br />oRsUser:<span style=\"color: #000000;\">CursorType</span>     := <span style=\"color: #000000;\">1</span>        <span style=\"color: #B900B9;\">// opendkeyset</span><br />oRsUser:<span style=\"color: #000000;\">CursorLocation</span> := <span style=\"color: #000000;\">3</span>        <span style=\"color: #B900B9;\">// local cache</span><br />oRsUser:<span style=\"color: #000000;\">LockType</span>       := <span style=\"color: #000000;\">3</span>        <span style=\"color: #B900B9;\">// lockoportunistic</span><br /><br />cSQL := <span style=\"color: #ff0000;\">\"SELECT * From [Staff] Order by [Lname]\"</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br />  oRsUser:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSQL,xCONNECT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// xConnect is now the connection object</span><br />CATCH oErr<br />  <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Error in Opening Staff table\"</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br /> </div>[/code:rb36ad5c]\nAs you can see .. I just re-defined xConnect to be the ( global ) connection object rather than the ( global ) connection string. This offered me the best solution without having to do major surgery and accomplishes using just ONE pre-established connection passed to open each recordset .. thus allowing me to only manage one connection which I can close at anyone time like when I need ( at runtime ) to execute the 'repair and compact' routine .. and at the close of that routine .. I just re-establish the global connection and keep on going.\n\nI must admit, I am a bit concerned about maintaining a single ( application ) connection due to the possibility the workstation could temporally lose its network connection and the app would not be able to re-connect, however I have all my recordsets trapped between Try,Catch and EndTry .. and all the user would see is a connection message and the app would not necessarily crash with a run-time error.... but if the network goes down or 'hick-ups' more than my app would crash as well <!-- s:| --><img src=\"{SMILIES_PATH}/icon_neutral.gif\" alt=\":|\" title=\"Neutral\" /><!-- s:| --> \n\nI would presume all my legacy applications using Ms Sql would suffer from the same connection problem and curiously why none of the DBA's would have noticed an excessive amount of open connections ? .. and even how Ms Sql manages those as concurrent or not <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nRick Lipkin", "time": "18:12", "topic": "Close ADO-connection", "username": "Rick Lipkin" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nIdeally, if your app looses a connection, the app should save the recordset locally, then update the database when a connection is re-established. ADO has built-in capabilities to save and restore recordsets.\n\nPersisting Data\n[url:3ykmrtal]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/ms675273(v=vs&#46;85)&#46;aspx[/url:3ykmrtal]\n\nI have never used this so I can't offer more info.\n\nRegards,\nJames", "time": "19:10", "topic": "Close ADO-connection", "username": "James Bott" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr James\n\nI shall soon post an example of how to do it. (We can do with xHarbour but not yet with Harbour). We shall also discuss about disconnected recordsets in that posting.\n\nBut Mr Ricks (and many others') problem is what happens if the connection with the server is broken while a user is browsing a recordset? How do we handle the situation? We shall be soon discussing these aspects also.", "time": "20:15", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "James\n\nI am not too concerned about data as I buffer all my fields with variables and I create my recordset with the local cache option .. I am not really 'detached' but not working from the database or the table ( as I understand it ) .. from my experience, if the workstation crashes it is not (as) catastrophic to the database especially if the database is on a network share or client\\server so database corruption ( especially Ms Access ) is not that common.\n\nBuffered variables ( add and edit ) are not written to the table until oRs:Update() so if the box crashes or the network 'hick-ups' .. the variables were never in a committed state .. nothing added or changed, your app may give you a run-time error but so will most of the other applications on that box .. \n\nAs far as buffering data ( un-written data ) as a transaction if the network loses connection, is important, don't get me wrong, I would rather have my app crash and let the user re-boot and try the application again than worry about an un-stable workstation and if the buffered transaction is really being captured intact to be written to the table at some future time.... \n\nJust one of those things you can blame on a 'disturbance in the force' <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nRick Lipkin", "time": "20:21", "topic": "Close ADO-connection", "username": "Rick Lipkin" } ]
Close ADO-connection
[ { "date": "2013-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rick\n\nGlad you could switch to single connection object instead of single connection string so fast.\n\n[quote:1vk165t8]I must admit, I am a bit concerned about maintaining a single ( application ) connection due to the possibility the workstation could temporally lose its network connection and the app would not be able to re-connect, however I have all my recordsets trapped between Try,Catch and EndTry .. and all the user would see is a connection message and the app would not necessarily crash with a run-time error.... but if the network goes down or 'hick-ups' more than my app would crash as well <!-- s:| --><img src=\"{SMILIES_PATH}/icon_neutral.gif\" alt=\":|\" title=\"Neutral\" /><!-- s:| --> \n[/quote:1vk165t8]\n\nEven in your earlier method, if network connection is down while the user is using (mostly browsing or editing) a recordset, the situation is the same. In both approaches we have the same issue.\n\nYou say you are talking about losing connection when user has closed all recordsets and just doing nothing. Even then it is not an issue. If you fail to open recordset, just close and reopen the connection and try again. \n\nWe have better answers. Also please see my reply to Mr James' post. We shall discuss some of these issues in my future postings.\nBut we can not always avoid crashes when network fails which happens even when we are browsing a DBF residing on the server.\n\n[quote:1vk165t8]I would presume all my legacy applications using Ms Sql would suffer from the same connection problem[/quote:1vk165t8]\nYes.\n\n[quote:1vk165t8]curiously why none of the DBA's would have noticed an excessive amount of open connections ?[/quote:1vk165t8]\nThey should have. When an organisation has both Oracle and sql servers most DBAs concentrate more on oracle server activity and they pay least attention to sql servers.\n\nEarlier I remember you were mentioning about the issue of licences. That would not be an issue. Even in case of user count based licences, the count applies to the number of client-pcs connected at any given point of time, but not to the number active sessions.", "time": "20:34", "topic": "Close ADO-connection", "username": "nageswaragunupudi" } ]
Close ADO-connection
[ { "date": "2020-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\n\nI need to close all activated dialog by autooff() *alike screen saver*. I can use this below function for automatic log off (popup login screen) the program.\n[url:jzmg94mb]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=21595&start=0&hilit=getInputState[/url:jzmg94mb]\n\nI need to return to main windows (close all sub dialog), If user does not use for specific time.\n\nHow to do this?\n\nThanks in advance,", "time": "04:05", "topic": "Close Activated Dialog by oWnd:oTimer", "username": "dutch" } ]
Close Activated Dialog by oWnd:oTimer
[ { "date": "2020-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Dutch \n\n[quote:3361eo7m]I need to return to main windows (close all sub dialog), If user does not use for specific time.[/quote:3361eo7m]\n\nYou can use a logical var for each dialog ( lOpen := .T. or .F. )\nMaybe a solution You are looking for\n\nI have still a question to\nHow can I set the vars lOpen{1], lOpen{2] or lOpen{3] to .F. in case one of the dialog-systembuttons exit is used to perform a defined action <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nThis sample works : the timer is closing all open dialogs from inside a window\n\n[img:3361eo7m]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Autoclose&#46;jpg[/img:3361eo7m]\n\n[code=fw:3361eo7m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> SC_CLOSE   0xF060<br /><br /><span style=\"color: #00C800;\">STATIC</span> oWnd, oTimer, lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <br /><br />I := <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">3</span><br />    lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := .F.<br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog AUTOCLOSE\"</span> ;<br /><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;\">24</span>, <span style=\"color: #000000;\">64</span> <span style=\"color: #0000ff;\">PIXEL</span>  <br />oWnd:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16762509</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open Dialog 1\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd NOBORDER ;<br /><span style=\"color: #0000ff;\">ACTION</span> OPENDLG1<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open Dialog 2\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd NOBORDER ;<br /><span style=\"color: #0000ff;\">ACTION</span> OPENDLG2<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open Dialog 3\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd NOBORDER ;<br /><span style=\"color: #0000ff;\">ACTION</span> OPENDLG3<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #0000ff;\">TIMER</span><span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">//------------------- </span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> OPENDLG1<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlgBtn<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>  ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">450</span>, <span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span> <br />oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">13355927</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">BTNBMP</span> oDlgBtn <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> NOBORDER ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := .F., oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">NOWAIT</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := .T., NoCloseDlg<span style=\"color: #000000;\">&#40;</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// disable system-exit</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> OPENDLG2<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlgBtn<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">450</span>, <span style=\"color: #000000;\">700</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span> <br />oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">11513815</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">BTNBMP</span> oDlgBtn <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> NOBORDER ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := .F., oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">NOWAIT</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span>  lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</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;\">FUNCTION</span> OPENDLG3<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlgBtn<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">800</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">450</span>, <span style=\"color: #000000;\">1100</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span>  <br />oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">9028804</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">BTNBMP</span> oDlgBtn <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> NOBORDER ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := .F., oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">NOWAIT</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> lOpen<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</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;\">FUNCTION</span> <span style=\"color: #0000ff;\">TIMER</span><span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">IF</span> oTimer == <span style=\"color: #00C800;\">nil</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">TIMER</span> oTimer <span style=\"color: #0000ff;\">INTERVAL</span> <span style=\"color: #000000;\">7000</span> <span style=\"color: #0000ff;\">ACTION</span> CLOSEDLG<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">TIMER</span> oTimer<br /><span style=\"color: #00C800;\">ELSE</span><br />      Alert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"There is already a working timer...\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</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> CLOSEDLG<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br />I := <span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">3</span><br />    <span style=\"color: #00C800;\">IF</span> lOpen<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span> = .T.<br />        lOpen<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span> := .F.<br />        oDlg<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />    <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">NEXT</span><br /><br />oWnd:<span style=\"color: #0000ff;\">Refresh</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;\">//------------------- Disable the EXIT-button</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"windows.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbapi.h\"</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span> <span style=\"color: #000000;\">&#40;</span> NOCLOSEDLG <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( hWnd )</span><br /><br /><span style=\"color: #000000;\">&#123;</span><br />   HMENU hMenu = GetSystemMenu<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> HWND <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>, <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">&#41;</span> ;<br />   EnableMenuItem<span style=\"color: #000000;\">&#40;</span> hMenu, SC_CLOSE, MF_GRAYED <span style=\"color: #000000;\">&#41;</span> ;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:3361eo7m]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "16:02", "topic": "Close Activated Dialog by oWnd:oTimer", "username": "ukoenig" } ]
Close Activated Dialog by oWnd:oTimer
[ { "date": "2020-02-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Uwe,\n\nI got the solution as your recommendation, it works fine now. The lOpen will be .F. in the Main procedure (Home) after return from sub-dialog.\n\nThanks for an idea.\nDutch", "time": "05:37", "topic": "Close Activated Dialog by oWnd:oTimer", "username": "dutch" } ]
Close Activated Dialog by oWnd:oTimer
[ { "date": "2020-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:307k94z8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> GetAllWin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o == <span style=\"color: #00C800;\">nil</span> .or. o:<span style=\"color: #000000;\">hWnd</span> == GetWndApp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span>, o:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:307k94z8]", "time": "02:15", "topic": "Close Activated Dialog by oWnd:oTimer", "username": "nageswaragunupudi" } ]
Close Activated Dialog by oWnd:oTimer
[ { "date": "2020-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Rao,\n\nI will test and feedback to you. \n[quote=\"nageswaragunupudi\":24pyajdc][code=fw:24pyajdc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> GetAllWin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o == <span style=\"color: #00C800;\">nil</span> .or. o:<span style=\"color: #000000;\">hWnd</span> == GetWndApp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span>, o:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:24pyajdc][/quote:24pyajdc]\nThanks you so much.", "time": "03:27", "topic": "Close Activated Dialog by oWnd:oTimer", "username": "dutch" } ]
Close Activated Dialog by oWnd:oTimer
[ { "date": "2012-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "I want to do database maintenance after midnight. Is there a way to close all harbour applications still running at midnight? What would the source code look like?\n\nThanks\nFulton Loebel", "time": "21:42", "topic": "Close Applcation At Midnight", "username": "floebel" } ]
Close Applcation At Midnight
[ { "date": "2012-08-28", "forum": "FiveWin for Harbour/xHarbour", "text": "May you can use TIMER?", "time": "20:41", "topic": "Close Applcation At Midnight", "username": "mosh1" } ]
Close Applcation At Midnight
[ { "date": "2012-08-30", "forum": "FiveWin for Harbour/xHarbour", "text": "I use :\n\nDEFINE TIMER oOut INTERVAL 59*60000 OF oWnd ;\nACTION iif( LEFT(Time(),2)==\"00\" , ( set(_SET_ERRORLOG ,\"Autoclose.log\") , tracelog( DTOC(Date()) + \" , Programma closed , user \" + UPPER(NetName(.T.)) ) , oWnd:END() ) , )\n\n\nFrank", "time": "14:21", "topic": "Close Applcation At Midnight", "username": "Franklin Demont" } ]
Close Applcation At Midnight
[ { "date": "2007-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all,\n\nI am evaluating Crystal Reports XI working with FWH and ADS 8.1\n\nThings are working fine but something is missing...\n\nThis is how it works:\n\nI execute my app from client machine that creates a .dbf table with all the \ninformation that i need to put on the report previously created in Crystal \nReports XI. Then a connection to the ADS 8.1 is established via Crystal \nReports Driver 8.1. using a data dictionary.\n\nThis data dictionary created with Architect 8.1 have all the tables (.dbf´s) \nneeded by my app. In the next step ActiveXReportViewer opens and shows the \nreport with the information contained in the table.\n\nWith Architect opened I verified that a connection to ADS is established \nwith the correspondent dictionary (.add) and table (.dbf). Everything works \nfine until this moment.\n\nBut when I close the ActiveXReportViewer, this connection and the assotiated \ndbf file remains open by ADS. The only way I have managed to close this \nconnection was using Architect and manually closing the connection or wating \nabout 4 minutes later to ADS automatically close it by itself.\n\nI need to delete this temporary dbf to create another with the same name and \nrefreshed information from database.\n\nThe big question is this ... How can we force to close the data dictionary \nconnection and the correspondent tables from inside our app code after the \ninformation needed by crystal reports is not necessary anymore.\n\nThe ideal cenario would be closing the connection and tables when the app \nuser close the Cristal Reports Viewer. That way next user that runs the app \nwould have that dbf with refreshed information on it.\n\nAll the help in this issue is welcome and would be really apriciated.\n\nThis is my code app:\n\n#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oCrystal := CREATEOBJECT( \"CrystalRuntime.Application\" )\n LOCAL oReport := oCrystal:OpenReport( \"mapa001.rpt\" )\n\n LOCAL oWnd, oCRViewer\n\n DEFINE WINDOW oWnd\n\n oCRViewer = TActiveX():New( oWnd, \"CrystalReports115.ActiveXReportViewer.1\" )\n \n oCRViewer:SetProp( \"ReportSource\", oReport )\n \n oCRViewer:SetProp(\"DisplayGroupTree\",.F.)\n\t\t\n\t\toCRViewer:SetProp(\"WindowTitle\",\"Listagem do Mestre de Bens\") \n\t\t\n\t\t*/oCRViewer:SetProp(\"DisplayToolbar\",.T.)\n\t\t\n\t\toReport:HasSavedData()\n oReport:DiscardSavedData() \n oCRViewer:Do( \"ViewReport\" )\n\t\t\n oWnd:oClient = oCRViewer\n \n\t\t\t \n ACTIVATE WINDOW oWnd;\n MAXIMIZED\n \n RETURN NIL\n\nThanks and best regards,\n\nMário Paiva", "time": "12:09", "topic": "Close DBF Table opened by Crystal Reports XI via ADS 8.1", "username": "mario.paiva" } ]
Close DBF Table opened by Crystal Reports XI via ADS 8.1
[ { "date": "2007-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI compile this sample but CREATEOBJECT is missing. Where I can find it?. Thank you!!!.\n\nRegards,", "time": "12:50", "topic": "Close DBF Table opened by Crystal Reports XI via ADS 8.1", "username": "MOISES" } ]
Close DBF Table opened by Crystal Reports XI via ADS 8.1
[ { "date": "2007-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "I solved it, I have to link a lib", "time": "16:29", "topic": "Close DBF Table opened by Crystal Reports XI via ADS 8.1", "username": "MOISES" } ]
Close DBF Table opened by Crystal Reports XI via ADS 8.1
[ { "date": "2015-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there any way to close all open dialogs (without knowing which ones are open) ?\nOr is there a way to get a list of all open dialogs ?", "time": "01:44", "topic": "Close all dialogs", "username": "Jeff Barnes" } ]
Close all dialogs
[ { "date": "2015-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "To close all open dialogs:\n\n[code=fw:2rkbmuqt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> GetAllWin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"TDIALOG\"</span>, o:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:2rkbmuqt]\n\nArray of all open dialogs:\n[code=fw:2rkbmuqt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #00C800;\">local</span> aDlg := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> GetAllWin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"TDIALOG\"</span>, AAdd<span style=\"color: #000000;\">&#40;</span> aDlg, o <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2rkbmuqt]", "time": "09:07", "topic": "Close all dialogs", "username": "nageswaragunupudi" } ]
Close all dialogs
[ { "date": "2015-02-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Excellent. thank you.", "time": "18:41", "topic": "Close all dialogs", "username": "Jeff Barnes" } ]
Close all dialogs
[ { "date": "2008-02-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nHow can I close oWnd from the HTML code that's provided by cMyURL?\n[code:1ju95wjo]\nDEFINE WINDOW oWnd\noActiveX&#58;=TActiveX&#40;&#41;&#58;New&#40; oWnd, \"Shell&#46;Explorer\" &#41;\noWnd&#58;oClient&#58;=oActiveX\noActiveX&#58;Do&#40; \"Navigate2\", cMyURL &#41;\nACTIVATE WINDOW oWnd\n[/code:1ju95wjo]\nThanks\n\nPatrick", "time": "15:35", "topic": "Close oWnd from code inside HTML", "username": "Patrick Mast" } ]
Close oWnd from code inside HTML
[ { "date": "2008-02-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Try\n\noActiveX&#058;Do( \"Close\" )\n\nEMG", "time": "17:12", "topic": "Close oWnd from code inside HTML", "username": "Enrico Maria Giordano" } ]
Close oWnd from code inside HTML
[ { "date": "2014-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "My program will only allow one user to use it locally. I open a one DBF file locally in exclusive mode. This I do not wish to change.\n\nHere is the scenario...\n\nUser A runs my program in their Windows Login.\nThen User A walks away from their computer.\nAfter xx time, the computer will go to the Windows Login screen (controlled by users IT department).\nNow User B enters their Windows Login information and tries to run my program.\nSince User A still has the program open, User B cannot run the program.\n\nIs there any way to close the program running under a different user?", "time": "14:11", "topic": "Close program for other windows user", "username": "Jeff Barnes" } ]
Close program for other windows user
[ { "date": "2014-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Jeff,\n\nI have build a solution for this problem. It's quite a big solution, to big to put the code in here but also to difficult because this code can be found in several parts of my code. But I'll try to describe what I do.\n\nI have a file, containing all the controls of the different users.\nThen I have a timer which checks some controls per user for instance every minute.\nOne control is to check if the program has to be closed on demand by another user.\nThe timer makes the program to read the control within one minute. If my control for closing the program is set to true by the other user, the program will read this, then put the control back to false and finally quit the program.\n\nHow does user A make the application quit on the PC of user B?\n\nUser A can select user B in a listbox. Then there is a button which put the control for quitting the program to true for the selected user (i.e. user B).\nWithin one minute, the PC of user B will quit the application.\n\nI hope you understand what I mean.", "time": "14:39", "topic": "Close program for other windows user", "username": "driessen" } ]
Close program for other windows user
[ { "date": "2014-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Driessen,\n\nThank you... this gives me an idea of how to solve it <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "15:08", "topic": "Close program for other windows user", "username": "Jeff Barnes" } ]
Close program for other windows user
[ { "date": "2014-02-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Jeff,\n\nI found the class *Tinativo()* for Log Off (alike screen server by Timer), then by specific time in setup I will auto Log Out (Quit) The program if the user do not touch mouse or keyboard after specific time.\n- User A - leave the counter for 5 minutes \n - automatic Log-Off (Activate Login Screen)\n - after 5 minutes for example\n - automatic Log-Out (Quit the program)\n\nI fix the case of user do not quit the program in network environment and then the other user cannot run the end day procedure and maintenance files (all station must close before run it).\n\nThanks,\nDutch", "time": "09:28", "topic": "Close program for other windows user", "username": "dutch" } ]
Close program for other windows user
[ { "date": "2014-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Good afternoon to all my dear colleagues: D\nI'm going through a situation where my system is simply closed form 'not advised' and causing much inconvenience to my customers. I have observed that it generates a file called 'hb_out.log'. In this aquivo find the timeline happened to the time of error, is always 'burst' in some of the functions 'DB ... ()' (dbcommit (), dbAppend (), etc.). The information is brought to me is that the CDX is corrupted (hb_cdxPageKeyLeafBalance:. Corrupted index). Would like to know if any of your friends or even liniares antonio One can help me.\nAlready I am grateful to everyone's attention.\n\nPs: I am Brazilian and I'm using the google translator if my 'english' is not good, I apologize. rsrsrsrsrsrsrs\nPS: I use Harbour", "time": "20:16", "topic": "Close the sistem", "username": "arthursilvestre" } ]
Close the sistem
[ { "date": "2014-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "i suggest you delete the index file and recreate it\n\nRegards.", "time": "21:15", "topic": "Close the sistem", "username": "karinha" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "You can put the expression you create the index?", "time": "13:11", "topic": "Close the sistem", "username": "cnavarro" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "not solve, I'm also having the same problem, first thought was the database class, then the harbour, I particionei my dbf parameters created in the harbour dbf minimized, but once a week is the same problem and all this then I switched to harbour in xHarbour did not have that problem. all say the harbour is better and while I could see is that I gained speed network and running the program, however has this inconvenience. \n\nlet's wait some guro the harbour.", "time": "13:05", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "sorry arthur enjoy your post, but I have the same difficulty \n\nthis is what most corrupts the index, is also the most used\n\n\t\t oTxt1:SetText(\"Arquivo de Clientes\")\n\t\t USE arqcli NEW EXCLUSIVE\n\t\t IF( lPack, hb_dbPack(), )\n\t\t nRegCdx := RecCount() / 100\n\t\t\t\toMetCdx:SetTotal( RecCount() )\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por Código\")\n\t\t INDEX ON cod TAG cod EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por Razão Social\")\n\t\t INDEX ON nom TAG nom EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por Nome do Cliente\")\n\t\t INDEX ON ape TAG ape EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por C.N.P.J.\")\n\t\t INDEX ON cgc TAG cgc EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por Município\")\n\t\t INDEX ON mun TAG mun EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por Ramo de Atividade\")\n\t\t INDEX ON atv TAG atv EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx\n\t\t oTxt2:SetText(\"Indexando o Arquivo Por Vendedor\")\n\t\t INDEX ON ven TAG ven EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx", "time": "13:43", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I had a similar problem some time ago. At that time, I was using xHarbour.\n\nI changed to Harbour and the problem disappeared.", "time": "20:03", "topic": "Close the sistem", "username": "driessen" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "mine was just the opposite, but I'm reviewing the entire structure of dbf, inclusion, change ... hope FIND the problem.", "time": "20:55", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Try creating indexes so the first time\n\n[code=fw:zuxh2hzu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oTxt1:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Arquivo de Clientes\"</span><span style=\"color: #000000;\">&#41;</span><br />USE arqcli <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br /><span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> lPack, hb_dbPack<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span><br />nRegCdx := RecCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">100</span><br />oMetCdx:<span style=\"color: #000000;\">SetTotal</span><span style=\"color: #000000;\">&#40;</span> RecCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por Código\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> cod TAG cod <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por Razão Social\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> nom TAG nom <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por Nome do Cliente\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> ape TAG ape <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por C.N.P.J.\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> cgc TAG cgc <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por Município\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> mun TAG mun <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por Ramo de Atividade\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> atv TAG atv <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br />oTxt2:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indexando o Arquivo Por Vendedor\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> ven TAG ven <span style=\"color: #B900B9;\">//EVAL ( oMetCdx:Set(RECNO()), SysRefresh() ) EVERY nRegCdx</span><br /> </div>[/code:zuxh2hzu]\n\nWhat version of FWH and Harbour are you using?", "time": "21:04", "topic": "Close the sistem", "username": "cnavarro" } ]
Close the sistem
[ { "date": "2014-08-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I'll try and then I report you, use FWH 907 / 1312 + harbour 3.0 / 3.2 and two'm in trouble", "time": "22:19", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2014-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "I have the same problem, but only on a few customers, most of them do not. \n\nIt seems that is related to equipment.\n\nI don't know what to do.", "time": "11:16", "topic": "Close the sistem", "username": "ORibeiro" } ]
Close the sistem
[ { "date": "2014-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Erro irrecuper vel 9201: hb_cdxPageKeyLeafBalance: index corrupted.\nErro irrecuper vel 9201: hb_cdxPageSeekKey: wrong parent key.\n\nI have the same problem, already used XHB, switched to HB and was otimo for 5 days and after this period continues with the same problem, after deleting the CDX and create problem sometimes back again in 1 hour or 6 hours but it comes back happening, this customer has 40 machines that uses accessing the system, but already reduce usage to 20 machines and the problem continues, if some physical problem on some equipament to identify this problem.\n\n\nCurrently use the HB 3.2 and FHW 13.12 and bcc 5.82", "time": "03:04", "topic": "Close the sistem", "username": "marciotullio" } ]
Close the sistem
[ { "date": "2014-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Marcio Tullio,\n\nThe problem is in your dbf that is corrupted. You must do this: rename your DBF like yourdbf_old.dbf and create a new one (maybe using DBU or another of your preference) and create the structure manually. After this, import all data from the old dbf. In your app, recreate all CDX files. \n\nLet us know your results.", "time": "22:35", "topic": "Close the sistem", "username": "Kleyber" } ]
Close the sistem
[ { "date": "2014-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Kleyber Hello, I've done it and not resolved, I created all dbf in harbour and spends a few hours, sometimes minutes, corrupts the cdx. \n\nI added this function in application start. \nIf! WIN_OSNETREGOK () // Need ADM rights \nIf! WIN_OSNETREGOK (.t.,. T.) // First .t. is to adjust XP / ... W98, the second adjusts the view. \nMsgInfo ('Registration not set windows!') \nEndIf \nEndIf \n\nand took the DBINFO (DBI_SHARED, .F.) opening dbf \n\nOnly Tomorrow I will have the results.", "time": "23:35", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "From my notes:\n-------------------\n4/27/2005 7:08 AM\n\nWindows' Oppontunistic Locking\n\nIs well described at:\n<!-- m --><a class=\"postlink\" href=\"http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html\">http://www.dataaccess.com/whitepapers/o ... ching.html</a><!-- m -->\n-----------------\n\nIt also appears that you have Win 98 computers on the network--I highly recommend not using those.\n\nThe amount of RAM in the computers can be an issue. \n\nIs this a new system, or an existing system that just started generating errors? If it just started, was there an update to the application software or server?\n\nJames", "time": "00:08", "topic": "Close the sistem", "username": "James Bott" } ]
Close the sistem
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi James, thanks for answering.\n\nin my case, I dont have computers with w98, machines are core i3 4GB, 3GB 2duo core, but are already two days without problems after the changes. \nI'm monitoring and getting everything in order will give the opinion.", "time": "13:56", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2014-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "My final thoughts despois two weeks without problems. \n\nAcresentei this function. \nIf! WIN_OSNETREGOK () // Need ADM rights \n If! WIN_OSNETREGOK (.t.,. T.) // First .t. is to adjust XP / ... W98, the second adjusts the view. \n MsgInfo ('Registration not set windows!') \n EndIf \nEndIf \n\nremoved from database class. \nDBINFO (DBI_SHARED) \n\nhow to use DBF + CDX acrecentei the opening of the main .PRG \nAutoShare SET TO 0 \n\nrecreated with all dbf HARBOUR and updated \n\nand finally (do not believe that is the problem, but ...) EVERY removed the indexing \nINDEX ON type + DTOS (dtem) TAG dtem EVAL (oMetCdx: Set (RECNO ()), SysRefresh ()) // EVERY nRegCdx \n\nthese were my steps, hope it helps someone who pass by this problem, one thing I noticed is that the error will always be ours, of course, sometimes some updates compiler error occurs. but it is very rare.", "time": "13:27", "topic": "Close the sistem", "username": "aferra" } ]
Close the sistem
[ { "date": "2019-10-04", "forum": "mod_harbour", "text": "Hi,\n\nHere you have the example that we have programmed this week with our mod. This week we have tested with Apache Windows to try ADO\n\nAuthentication Screen\nADO connection!\nMS SQL database\nBrowser (all code without using any pluggin)\nPagination\nRegister editing\nError control in editing\n...\n\nUsing our MVC (Model / View / Controller) Mercury system\n\n[url:dj3fovs0]http&#58;//modharbour&#46;sysctrlsoftware&#46;com&#58;39391/seamap-3[/url:dj3fovs0]\n\n\nRegards\nC.\n\n\nregards", "time": "18:03", "topic": "Closing Circles", "username": "Carles" } ]
Closing Circles
[ { "date": "2022-10-11", "forum": "mod_harbour", "text": "Hola Carles\n\nEstoy probando como trabajar con mod_harbour y MS SQL y no tengo claro como manejar el tema de paginación, sobre todo con consultas de muchos registros, ¿Podrias compartir el ejemplo que mencionas?, el link que alli indicas ya no esta disponible.\n\nMuchas gracias!!\n\nSaludos desde Perú\n\nMartín Ch.", "time": "00:10", "topic": "Closing Circles", "username": "mchumpitazv" } ]
Closing Circles
[ { "date": "2022-10-11", "forum": "mod_harbour", "text": "Martin, I think you always have to check which mechanism you use on a case-by-case basis.\nWhat do you have on the frontend? bootstrap table?\nWe did some test when starting with mod harbour 2 years ago. \nPlease give more details.\n\n\nBest regards,\nOtto\n\n[url:33vv4m8b]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=45&t=39275&p=234389&hilit=speed&sid=8522ac063ae09281d22e52d2658f75dd&sid=e7e9cdf2c038ab13a4db1fd998f53c57#p234389[/url:33vv4m8b]", "time": "16:16", "topic": "Closing Circles", "username": "Otto" } ]
Closing Circles
[ { "date": "2022-10-11", "forum": "mod_harbour", "text": "Hola Otto\n\nGracias por el comentario, efectivamente dentro de los detalles que debo adicionar es que estoy trabajando con mod-harbour V2 y con tablas bootstrap tal y como mencionas.\nEl extracto de los datos es atraves de store procedure sql que luego son tratados desde el aplicativo mismo como recordset, pero el tema mayor es ¿como trabajo el tema de paginacion de muchos registros y que puedan ser mostrados en el front-end sin colapsar la presentación?\nSegun algunos ejemplos de mod-harbour los registros son colocados dentro de matrices que luego son mostrados por el BROWSE, pero al ser muchos no tengo idea de como \"paginarlos\".\n\nEn el ejemplo. Carles menciona que trabaja con paginacion, validaciones, etc., por eso me atrevi a solictarle copia del ejemplo para aclarar mis dudas.\n\nEspero puedan apoyarme.\n\nSaludos, \n\nMartín Ch.", "time": "16:58", "topic": "Closing Circles", "username": "mchumpitazv" } ]
Closing Circles
[ { "date": "2022-10-11", "forum": "mod_harbour", "text": "Martin,\nHave you already tried with the different settings here?\nIs the data access with AJAX\nBest regards,\nOtto\n\n\n\n[code=fw:3fq6ea4u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><table &nbsp;<span style=\"color: #00C800;\">class</span>=<span style=\"color: #ff0000;\">\"table table-image\"</span><br /><span style=\"color: #0000ff;\">id</span>=<span style=\"color: #ff0000;\">\"table\"</span><br />data-toggle=<span style=\"color: #ff0000;\">\"table\"</span><br />data-height=<span style=\"color: #ff0000;\">\"<?prg &nbsp;return hINI[ 'KARTEI-DATAHEIGHT' ] ?>\"</span><br />data-unique-<span style=\"color: #0000ff;\">id</span>=<span style=\"color: #ff0000;\">\"_recno\"</span><br />data-search=<span style=\"color: #ff0000;\">\"true\"</span><br />data-search-align=<span style=\"color: #ff0000;\">\"left\"</span><br />data-pagination=<span style=\"color: #ff0000;\">\"true\"</span><br />data-toolbar=<span style=\"color: #ff0000;\">\"#toolbar\"</span><br />data-query-params=<span style=\"color: #ff0000;\">\"queryParams\"</span><br />data-side-pagination=<span style=\"color: #ff0000;\">\"server\"</span><br />data-server-sort=<span style=\"color: #ff0000;\">\"false\"</span><br />data-show-footer=<span style=\"color: #ff0000;\">\"true\"</span><br />data-ajax=<span style=\"color: #ff0000;\">\"ajaxRequest\"</span><br />data-click-to-<span style=\"color: #0000ff;\">select</span>=<span style=\"color: #ff0000;\">\"true\"</span><br />data-single-<span style=\"color: #0000ff;\">select</span>=<span style=\"color: #ff0000;\">\"true\"</span><br />data-detail-view=<span style=\"color: #ff0000;\">\"true\"</span><br />data-detail-formatter=<span style=\"color: #ff0000;\">\"detailFormatter\"</span><br />data-show-columns=<span style=\"color: #ff0000;\">\"true\"</span><br />data-show-columns-toggle-all=<span style=\"color: #ff0000;\">\"true\"</span><br />><br />&nbsp;</div>[/code:3fq6ea4u]", "time": "18:46", "topic": "Closing Circles", "username": "Otto" } ]
Closing Circles
[ { "date": "2022-10-14", "forum": "mod_harbour", "text": "Estimado Otto\n\nMuchas gracias por tu respuesta, no me queda muy claro lo que mencionas, tendras un ejemplo algo mas completo que me ayude a comprender lo que me recomiendas?\n\nSaludos y gracias de antemano.\n\nMartín", "time": "19:26", "topic": "Closing Circles", "username": "mchumpitazv" } ]
Closing Circles
[ { "date": "2022-10-15", "forum": "mod_harbour", "text": "Hello Martin,\n\nI myself only work with DBF. \n\nBut theoretically, it doesn't matter how the data is accessed.\nIt's difficult for me to answer here, as I have no idea how well you know web programming.\n\nI'll post a simple example.\n\nThe logline() function in data.prg logs all accesses.\n\nIf you change in your bootstrap table definition \ndata-side-pagination=\"server\", you will see that every click on the PAGINATION navigation will trigger an AJAX call.\n\nWithout data-side-pagination=\"server\", PAGINATION is done directly on the client, i.e. in the web browser.\n\n[url:2h301p6b]https&#58;//mybergland&#46;com/fwforum/ajaxtest&#46;zip[/url:2h301p6b]\n\nBest regards,\nOtto", "time": "10:28", "topic": "Closing Circles", "username": "Otto" } ]
Closing Circles
[ { "date": "2015-09-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nIn an application i'm writing, I open an excel-file, select and copy data to the clipboard, and want to close the excel again.\nIt's working nice, but the problem is that excel ask:\n- Do want to save the changes?\n- Do you want to leave the data in the clipboard?\n\nIs it possible to close it without those messages?\n\nThanks", "time": "11:18", "topic": "Closing Excel without saving data", "username": "Marc Vanzegbroeck" } ]
Closing Excel without saving data
[ { "date": "2015-09-30", "forum": "FiveWin for Harbour/xHarbour", "text": "This may help:\n\n[url:16rjlpt9]http&#58;//www&#46;exceltip&#46;com/files-workbook-and-worksheets-in-vba/delete-sheets-without-confirmation-prompts-using-vba-in-microsoft-excel&#46;html[/url:16rjlpt9]", "time": "11:34", "topic": "Closing Excel without saving data", "username": "Antonio Linares" } ]
Closing Excel without saving data
[ { "date": "2015-09-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:p7y2gxkm]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/bb177478(v=office&#46;12)&#46;aspx[/url:p7y2gxkm]", "time": "11:36", "topic": "Closing Excel without saving data", "username": "Antonio Linares" } ]
Closing Excel without saving data
[ { "date": "2015-09-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you Antonio.\n\nIt's working now with\n[code=fw:2xt8iptl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oExcel:<span style=\"color: #000000;\">Displayalerts</span><span style=\"color: #000000;\">&#40;</span>.f.<span style=\"color: #000000;\">&#41;</span></div>[/code:2xt8iptl]", "time": "12:26", "topic": "Closing Excel without saving data", "username": "Marc Vanzegbroeck" } ]
Closing Excel without saving data
[ { "date": "2008-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\r\n\r\nwith wbrowse, a MDI-Child window will close, if you press \"ESC\", but a xbrowse-window won't. Is there a possibility to close a xbrowse-window also with \"ESC\"?", "time": "11:46", "topic": "Closing Window (MDI-Child) with Escape", "username": "gkuhnert" } ]
Closing Window (MDI-Child) with Escape
[ { "date": "2008-12-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\r\n\r\n oBrw:bKeyChar = { | nKey | If( nKey == VK_ESCAPE, oWnd:End(), nKey ) }", "time": "08:33", "topic": "Closing Window (MDI-Child) with Escape", "username": "Antonio Linares" } ]
Closing Window (MDI-Child) with Escape
[ { "date": "2008-12-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\r\n\r\nthanks, works fine! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "10:18", "topic": "Closing Window (MDI-Child) with Escape", "username": "gkuhnert" } ]
Closing Window (MDI-Child) with Escape
[ { "date": "2007-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a MDI application that opens different databases, say CLIENTS, SUPPLIERS and MANUFACTURERS.\n\nI open each as a MDICHILD. (I use resources, so I have a borderless dialog the same size of the MDICHILD) (as taught to be my Antonio Linares and fwh\\samples\\TestMdi4.prg )\n\n1. I want to prevent the user from opening the same table more than once, so I need to check before opening, if the window is defined - ISWINDOW() doesn't seem to be working - is it me? Is that correct way? \n\n2.I've also tried checking if the table is already open - if it is, the user has opened the window before. (in this case I want to bring that window 'to the front'. I need a oWnd:Maximize() function like the oWnd:Restore() to do this?\n(I tried: wndMain():oWndClient:aWnd[1]:setFocus() as suggested by James Bott on this forum - but this only brings the window to the front, not maximise it if it is restored.)\n\n\n3. The problem with using the check in (2.) above, is that if the user doesn't press my \"CLOSE NEATLY\" button, I don't get to check that the last data was saved and that the databases get closed. (e.g. they press the 'X' on the window to close. ) Is the VALID clause where this needs to happen?\n\n4. If the VALID clause is the correct place, do I put it on the (borderless) oDLG or on the oMDICHILDWnd ? All I can get it to do is to either close the whole app, or close without 'neatening up' first.", "time": "10:36", "topic": "Closing Windows neatly", "username": "Ollie" } ]
Closing Windows neatly