messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2015-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAbout Append from, please review function fw_dbftoado().\n\nAbout refreshing, yes it is a behaviour in ADO, but xBrowse does refresh when scrolling. Also, I do refresh Recordset after adding of editing records, so in my opinion it´s not an issue.\n\nThank you",
"time": "17:18",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:34yfbjmm]About Append from, please review function fw_dbftoado().[/quote:34yfbjmm]\n\nWhere can I find it?\n\n[quote:34yfbjmm]About refreshing, yes it is a behaviour in ADO, but xBrowse does refresh when scrolling. Also, I do refresh Recordset after adding of editing records, so in my opinion it´s not an issue.[/quote:34yfbjmm]\n\nWhat you mean by refreshing is it requery ?\nThus if other user add new record you will only see it after adding or editing?",
"time": "17:46",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAt source\\adofuncs.prg\n\nfunction FW_AdoImportFromDBF( oCn, cDbf, cAdoTable, cColPrefix, nMultiRowSize, aFields )\n\n\nfunction FW_AdoExportToDBF( oRs, cDbf, lEditStruct )\n\n\nIn xBrowse yes. But that´s not a problem, in DBFCDX you have to issue a refresh() too.\n\nxBrowse handles it very good with ADORDD. You should try latest xbrowse.",
"time": "18:44",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nIn the app we are working browses are not a problem. All work well without a single changed line.\n\nMy worry is with transactions.\n\nThe app works 99% like this:\n\nFirst closes and add all records to all tables necessary to the trans.\nIf all goes well loop through those records in the several tables and replace values\n\nLets say a another user add a line to an order before its locked.\nWhen I initiate transaction locking the order that new record does not exist in my set yet.\nThus will not be taken in account in my transaction.\n\nDont you think this is a potential problem?\n\nBy the way I have xbrowse code here and I cant see any :Requery",
"time": "18:59",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, with this new version the errors are gone except the following:\nI compile with xHarbour!\n\n[code=fw:3f1bm3py]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">MAKE Version <span style=\"color: #000000;\">5.2</span> Copyright <span style=\"color: #000000;\">(</span>c<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1987</span>, <span style=\"color: #000000;\">2000</span> Borland<br /> c:\\xharbour\\bin\\harbour.exe -i.;c:\\fwh\\include;c:\\prg_allgemein;c:\\termi<br />ne;c:\\xharbour\\include -n -m -w -es2 -gc3 -dtestfassung -d__GUN__ C:\\adordd\\ado<br />rdd.prg -o.\\adordd.hrb<br />xHarbour <span style=\"color: #000000;\">1.2</span><span style=\"color: #000000;\">.3</span> Intl. <span style=\"color: #000000;\">(</span>SimpLex<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">(</span>Build <span style=\"color: #000000;\">20140725</span><span style=\"color: #000000;\">)</span><br />Copyright <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2014</span>, http:<span style=\"color: #B900B9;\">//www.xharbour.org <!-- m --><a class=\"postlink\" href=\"http://www.harbour-project.org/\">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style=\"color: #ff0000;\">'C:<span style=\"color: #000000;\">\\a</span>dordd<span style=\"color: #000000;\">\\a</span>dordd.prg'</span>...<br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">366</span><span style=\"color: #000000;\">)</span> Error E0022 Invalid lvalue: <span style=\"color: #ff0000;\">':'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1633</span><span style=\"color: #000000;\">)</span> Warning W0001 Ambiguous reference: <span style=\"color: #ff0000;\">'HB_FT_DATETIME'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">3872</span><span style=\"color: #000000;\">)</span> Warning W0001 Ambiguous reference: <span style=\"color: #ff0000;\">'NWA'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">3977</span><span style=\"color: #000000;\">)</span> Warning W0001 Ambiguous reference: <span style=\"color: #ff0000;\">'UR_DBRI_RECSIZE'</span></div>[/code:3f1bm3py]",
"time": "09:05",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks next post will be corrected.\n\nThe : syntax works with xHarbour don't know why it doesn't with Harbour. \nJust comment it.",
"time": "09:35",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nWhich version of Fivewin and Harbour are you using?.\n\nAbout this error, please check this post:\n<!-- m --><a class=\"postlink\" href=\"https://groups.google.com/forum/#!topic/harbour-devel/YRmO7CAlpgU\">https://groups.google.com/forum/#!topic ... RmO7CAlpgU</a><!-- m -->\n\nThank you.",
"time": "10:23",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nOk I see it. Im using xHarbour Set 2008.\n\nHow can we call it correctly?",
"time": "10:41",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Done!\n\n[code=fw:do7s9ivd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span> aWAData<span style=\"color: #000000;\">[</span>WA_FIELDRECNO<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Properties</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Optimize\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">1</span> <br /> </div>[/code:do7s9ivd]",
"time": "10:47",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nDbcreate() should take the database from SET ADO DEFAULT DATABASE TO command, so only needs to indicate table name, as current dbcreate() from DBFCDX.\n\nSo, I would plan dbcreate() as follows.\n\nTo keep compatibility with DBFCDX, fist parameter should be table name.\n\nAlso, if you want, you can indicate separated by ; the rest of the parameters:\n\nSTATIC FUNCTION ADO_CREATE( nWA, aOpenInfo )\n\n LOCAL aWAData := USRRDD_AREADATA( nWA )\n LOCAL cTable := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 1, \";\" )\n LOCAL cDataBase := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 2, \";\" )\n LOCAL cDbEngine := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 3, \";\" )\n LOCAL cServer := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 4, \";\" )\n LOCAL cUserName := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 5, \";\" )\n LOCAL cPassword := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 6, \";\" )\n\n\nI discovered a new bug: creating an empty Access database and table, I can´t add records. I get MsgAlert() ADO ERROR UNKNOWN at function ADO_APPEND().\n\nIf I edit the Access and I add with Access a new record, I can APPEND new records with ADORDD.\n\nThank you.",
"time": "12:13",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[quote=\"AHF\":2uro70p3]Im using xHarbour Set 2008.[/quote:2uro70p3]\n\nA version 7 years old! Time to update! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "15:01",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[quote=\"AHF\":j40ycfm0]But what do these functions return? The first Field expression and 2nd cfor expression or the eval result ?[/quote:j40ycfm0]\n\nAs an example:\n\n[code=fw:j40ycfm0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> UPPER<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">name</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> UPPER<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">name</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span></div>[/code:j40ycfm0]\n\nBut please note that UPPER() is only a sample. Another example:\n\n[code=fw:j40ycfm0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> GETTOTALINCOME<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> GETTOTALINCOME<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">)</span> >= <span style=\"color: #000000;\">1000</span></div>[/code:j40ycfm0]\n\nEMG",
"time": "16:18",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\n[code=fw:3ngjjgwt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> UPPER<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">name</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> UPPER<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">name</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span></div>[/code:3ngjjgwt]\n\nThis works. All you have to do is to replace UPPER with SQL UCASE or other SQL equivalent.\n\n[code=fw:3ngjjgwt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> UPPER<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">name</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> <span style=\"color: #ff0000;\">\"UCASE(\"</span>+ FIELD -> <span style=\"color: #0000ff;\">name</span> +<span style=\"color: #ff0000;\">\")\"</span> = <span style=\"color: #ff0000;\">\"A\"</span></div>[/code:3ngjjgwt]\n\nThis should work also like this:\n\n[code=fw:3ngjjgwt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> &<span style=\"color: #000000;\">(</span>GETTOTALINCOME<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> &<span style=\"color: #000000;\">(</span>GETTOTALINCOME<span style=\"color: #000000;\">(</span> FIELD -> <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+ <span style=\"color: #ff0000;\">\">= 1000\"</span></div>[/code:3ngjjgwt]",
"time": "16:38",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAnd how we define such indexes on the commands fro ADORDD.\n\nThanks.",
"time": "17:13",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nthis would mean to review all my code and I can't afford it.\n\nEMG",
"time": "17:14",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"lucasdebeltran\":3tofgg7z]Antonio,\n\nAnd how we define such indexes on the commands fro ADORDD.\n\nThanks.[/quote:3tofgg7z]\n\nLucas,\n\nReplace it in every place such as:\n\n[code=fw:3tofgg7z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">IF</span> RDDNAME<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"ADORDD\"</span><br /> <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> ...<br /><span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> as it is <br /><span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:3tofgg7z]\n\nOr maybe you can include a command change in INDEX ON... to foresee this situation.\n\nI dont have such a problem because this app already works with ADS.",
"time": "17:38",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"lucasdebeltran\":1bzwckbt]Antonio,\n\nDbcreate() should take the database from SET ADO DEFAULT DATABASE TO command, so only needs to indicate table name, as current dbcreate() from DBFCDX.\n\nSo, I would plan dbcreate() as follows.\n\nTo keep compatibility with DBFCDX, fist parameter should be table name.\n\nAlso, if you want, you can indicate separated by ; the rest of the parameters:\n\nSTATIC FUNCTION ADO_CREATE( nWA, aOpenInfo )\n\n LOCAL aWAData := USRRDD_AREADATA( nWA )\n LOCAL cTable := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 1, \";\" )\n LOCAL cDataBase := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 2, \";\" )\n LOCAL cDbEngine := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 3, \";\" )\n LOCAL cServer := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 4, \";\" )\n LOCAL cUserName := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 5, \";\" )\n LOCAL cPassword := hb_tokenGet( aOpenInfo[ UR_OI_NAME ], 6, \";\" )\n[/quote:1bzwckbt]\n\nI agree. Changes will be made in the next post.\n\n[quote:1bzwckbt]\nI discovered a new bug: creating an empty Access database and table, I can´t add records. I get MsgAlert() ADO ERROR UNKNOWN at function ADO_APPEND().\n\nIf I edit the Access and I add with Access a new record, I can APPEND new records with ADORDD.\n[/quote:1bzwckbt]\n\nSorry I know that's due to our trials in ADO_LOCK because of concurrent access control.\nWe must be sure that we have the recordset with most recent table information (new and deleted records included).\n\nThanks for your support",
"time": "08:35",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nFirst trials on real world went very well.\nTrials will continue during this week.\nStill didn't change one line of code in the app. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nThe only problem found its concerning performance of DBEVAL that translates to ADO_EVALBLOCK.\nIt takes an \"eternity\" to run. Something is wrong.\n\n[code=fw:zx2tl9u1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_EVALBLOCK<span style=\"color: #000000;\">(</span> nArea, bBlock, uResult <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> nCurrArea<br /><br /> <br /> nCurrArea := <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> nCurrArea != nArea<br /> dbSelectArea<span style=\"color: #000000;\">(</span> nArea <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> nCurrArea := <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <br /> <span style=\"color: #00C800;\">IF</span> PROCNAME<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <> <span style=\"color: #ff0000;\">\"ADO_RELEVAL\"</span><br /> <span style=\"color: #B900B9;\">// DONT KNOW WHY BUT DBEVAL ONLY WORK LIKE THIS</span><br /> <span style=\"color: #B900B9;\">//uResult := Eval( bBlock )</span><br /> <br /> UR_SUPER_EVALBLOCK<span style=\"color: #000000;\">(</span> nArea, bBlock, uResult <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span> <br /> uResult := Eval<span style=\"color: #000000;\">(</span> bBlock <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <br /> <span style=\"color: #00C800;\">IF</span> nCurrArea > <span style=\"color: #000000;\">0</span><br /> dbSelectArea<span style=\"color: #000000;\">(</span> nCurrArea <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <br /> <br /> <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br /> </div>[/code:zx2tl9u1]\n\nI m passing to UR_SUPER_EVALBLOCK otherwise I loose bBlock value.\nHow can I get the rest of the parameters of this function ?\n\n [<bForCondition>] , ;\n [<bWhileCondition>], ;\n [<nNextRecords>] , ;\n [<nRecord>] , ;\n [<lRest>] \n\nThere must be a function call by UR_SUPER_EVALBLOCK where all parameters are saved.",
"time": "08:32",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[quote=\"AHF\":17c8ct5h]First trials on real world went very well.\nTrials will continue during this week.\nStill didn't change one line of code in the app. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> [/quote:17c8ct5h]\n\nCan we use something like this?\n\n[code=fw:17c8ct5h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> MYFUNC1<span style=\"color: #000000;\">(</span> myparams <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> MYFUNC2<span style=\"color: #000000;\">(</span> myparams <span style=\"color: #000000;\">)</span></div>[/code:17c8ct5h]\n\nEMG",
"time": "09:53",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Enrico Maria Giordano\":31n06l2w]Antonio,\n\n[quote=\"AHF\":31n06l2w]First trials on real world went very well.\nTrials will continue during this week.\nStill didn't change one line of code in the app. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> [/quote:31n06l2w]\n\nCan we use something like this?\n\n[code=fw:31n06l2w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> MYFUNC1<span style=\"color: #000000;\">(</span> myparams <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">TO</span> MYINDEX <span style=\"color: #00C800;\">FOR</span> MYFUNC2<span style=\"color: #000000;\">(</span> myparams <span style=\"color: #000000;\">)</span></div>[/code:31n06l2w]\n\nEMG[/quote:31n06l2w]\n\nEnrico,\n\nAs long as its evaluated before send it to adordd I would say yes.\n\nEx.\n[code=fw:31n06l2w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> cexpress1 := <span style=\"color: #ff0000;\">\"field1 <> space(10)\"</span><br /> cexpress2 := <span style=\"color: #ff0000;\">\"field2+field3 ='\"</span>+ <span style=\"color: #000000;\">(</span>wcod<span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"'\"</span><br /> <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> field2+field3+str<span style=\"color: #000000;\">(</span>val<span style=\"color: #000000;\">(</span>field4<span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">(</span>temporario<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">while</span> &<span style=\"color: #000000;\">(</span>cexpress2<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">for</span> &<span style=\"color: #000000;\">(</span>cexpress1<span style=\"color: #000000;\">)</span>;<br /> </div>[/code:31n06l2w]\n\nPlease note that this is the only exception where you need to change code. \nCheck readme at github.\nFortunately the app we are adapting was working already with ADS thus this has already been done in the past.",
"time": "10:18",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[quote=\"AHF\":105xwjeh]As long as its evaluated before send it to adordd I would say yes.[/quote:105xwjeh]\n\nNo, they can't be evaluated in advance. So ADORDD is of no use for me. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "10:22",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nI regret <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nCant you work also with ADS?\n\nCant you somehow translated to a SQL SELECT ?",
"time": "11:06",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nNo, to all your questions. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "11:18",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nHave you been able to fix the APPEND bug?.\n\nThank you.",
"time": "11:58",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nYes.\n\nIll try to post new version during today.",
"time": "12:01",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Enrico Maria Giordano\":31nni8ag]Antonio,\n\nNo, to all your questions. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG[/quote:31nni8ag]\n\nEnrico,\n\nCan it work like this?\n\n index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )",
"time": "12:38",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThank you. Please ensure it works fine by deleting [i:14hzh2be]previously[/i:14hzh2be] the database, and next create the database and its tables.\n\nAlso, I guess LOCATE FOR now works as DBFCDX:\n\n[code=fw:14hzh2be]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">LOCATE <span style=\"color: #00C800;\">FOR</span> FIELD->NAME == <span style=\"color: #ff0000;\">\"Lucas\"</span></div>[/code:14hzh2be]\n\nIn addition, SET ADO LOCK CONTROL SHAREPATH TO should asume by default HB_DIRBASE(). If the programmer does want to change the path, so it should call this command.\n\nAbout the indexes, are SET ADO TABLES INDEX LIST TO and SET ADODBF TABLES INDEX LIST TO are [i:14hzh2be]both [/i:14hzh2be]required?.\n\nThank you.",
"time": "12:43",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[quote=\"AHF\":30xx1vz6]Can it work like this?\n\n index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )[/quote:30xx1vz6]\n\nNo, as \"myparams\" can be a field name. It has to be completely dynamic.\n\nEMG",
"time": "12:44",
"topic": "ADO RDD xHarbour",
"username": "Enrico Maria Giordano"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Enrico Maria Giordano\":2truptw1]Antonio,\n\n[quote=\"AHF\":2truptw1]Can it work like this?\n\n index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )[/quote:2truptw1]\n\nNo, as \"myparams\" can be a field name. It has to be completely dynamic.\n\nEMG[/quote:2truptw1]\n\nEnrico,\n\nBut what do these functions return? The first Field expression and 2nd cfor expression or the eval result ?",
"time": "14:04",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nNo, sorry, I ment about SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO commands for such indexes.\n\nThank you.",
"time": "23:03",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"lucasdebeltran\":1x78evut]Antonio,\n\nNo, sorry, I ment about SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO commands for such indexes.\n\nThank you.[/quote:1x78evut]\n\nLucas,\n\nI didnt tried I dont have such case.",
"time": "09:48",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nIm having a problem with APPEND FROM and COPY TO due to the fact that the scope info array never delivers cForExp and cWhileExp only the code blocks!\n\nThis disable us to construct the INSERT INTO with WHERE clause.\n\nIs there any way to get these as literal expressions?",
"time": "12:54",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI mean, for Enrico´s indexes if you could clarify what SET ADO TABLES INDEX LIST TO ... and SET ADODBF TABLES INDEX LIST TO ... should be.\n\nTheir usage is not clear neither in source code nor readme.txt.\n\nThank you.",
"time": "18:16",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nSET ADO TABLES INDEX LIST TO = indexes without of any clipper like expression only to be used by SQL\n\nSET ADODBF TABLES INDEX LIST TO = indexes with the clipper like expressions needed by the app for its evaluations.\n\nWhen we use &(indexkey(0)) we cant evaluate a index expression in ADO TABLES \"name+dDate+nValue\" we will get an error but we can issues a sql select like that.\nThus we need the ADODBF expression \"name+DTOS(dDate)+STR(nValue) to do it.\n\nThe ADO indexes are for queries the ADODBF are for the normal clipper expressions to allow its evaluation.\n\nConcerning the kind of Enrico indexes since the params are dynamic I assume that they are dynamically created each time they are needed so they dont need to be present in these arrays.\n\nIm finishing APPEND FROM and COPY TO guessing and testing params because the doc its none.\nI hope to have it ready tomorrow and Ill post a new version with all NORMAL rdd routines working.",
"time": "18:36",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThank you.\n\nHave you checked out arrayrdd source code?.",
"time": "20:30",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:240f19js]Have you checked out arrayrdd source code?.[/quote:240f19js]\n\nYes but find nothing concerning append or copy.",
"time": "21:18",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Completed version adordd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->",
"time": "18:31",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n\nHow can I get the complete file name of an open area?\n\nI need this to COPY TO.",
"time": "10:50",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:6f8cw1d9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"dbinfo.ch\"</span><br />dbInfo<span style=\"color: #000000;\">(</span>DBI_FULLPATH<span style=\"color: #000000;\">)</span></div>[/code:6f8cw1d9]",
"time": "10:53",
"topic": "ADO RDD xHarbour",
"username": "hmpaquito"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Of course!\n\nThanks.",
"time": "11:54",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Im facing the following problem:\n\nWhen we use Date() to place in a date field should it be Date() or Sql Now() ?\n\nIf there are several workstations in different time zones and if the field date corresponds for ex. to an order number to have last order number with the last date this might fail.\n\nOn other hand working with sql Now() brings also problems that the document might have a date posterior to the actual date which means the doc shouldn't be use before that date.\n\nIn the cases where there aren't any relations between numbers and dates can it be always sql Now()?\n\nWhat is your experience? Can you share it?",
"time": "13:41",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New version adordd <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nCheck readme",
"time": "18:28",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, in adordd.prg you use often:\n[code=fw:2x9njag2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">ALLTRIM<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>nRecord,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span></div>[/code:2x9njag2]\nThis code produces a error! STR with len 0 is not allowed? \n\nIn some cases the parameter nRecord ist from type \"C\" and a runtime-error is displayed if following code in adordd.prg is called from tryadordd.prg:\n[code=fw:2x9njag2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Relations in ADO SQL with record number are not allowed! See adordd.prg\"</span><span style=\"color: #000000;\">)</span><br /> nReturn := ADO_GOTO<span style=\"color: #000000;\">(</span> aRelInfo<span style=\"color: #000000;\">[</span> UR_RI_CHILD <span style=\"color: #000000;\">]</span>, uResult <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//-> uResult is type \"C\"</span><br /><br /> </div>[/code:2x9njag2]In tryadordd the database and table should be: [code=fw:2x9njag2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">DbCreate<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"table1;\"</span>+cPath+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\t</span>est2.mdb\"</span>, ....</div>[/code:2x9njag2] and [code=fw:2x9njag2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">DbCreate<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"table2;\"</span>+cPath+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\t</span>est2.mdb\"</span>,...</div>[/code:2x9njag2]",
"time": "20:39",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:1spwvvn6]\nCode:\nALLTRIM(STR(nRecord,0))\n\nThis code produces a error! STR with len 0 is not allowed? \n[/quote:1spwvvn6]\n\nYou are absolutely right! \nThe strange its that here with xHarbour Set 2008 this is accepted. No error!\nCorrected anyway! The length should be 10,0\n\n[quote:1spwvvn6]\nIn some cases the parameter nRecord ist from type \"C\" and a runtime-error is displayed if following code in adordd.prg is called from tryadordd.prg:\nCode:\nMSGINFO(\"Relations in ADO SQL with record number are not allowed! See adordd.prg\")\n nReturn := ADO_GOTO( aRelInfo[ UR_RI_CHILD ], uResult ) //-> uResult is type \"C\"\n[/quote:1spwvvn6]\n\nThe nRecord its always N type. \nUnless bookmarks are used and with it the results will be unpredictable. (no defined field as recno)\nThe ADOGOTO was left there by mistake when we were trying it.\nCorrected taken out.\nYou only (should ) get there if there is a relation and no index.\n\nIn tryadordd.prg you're right I changed the dbcreate proposed by Lucas and I forgot to change tryadordd.\n\nThanks a lot for your comments.\n\nIs adordd working ok for you?\n\nIt will be a great help to have your feed back.",
"time": "21:31",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, in the command SET ADO LOCK CONTROL SHAREPATH TO cPath RDD TO \"DBFCDX\" you sets the RDD for tlocks.dbf. In the code of adordd.prg should the extension from the indexfile not hardcoded (\"CDX\") as if i use another RDD the extension is another one! This hardcoded \"CDX\" are present on some places!\n\nLittle correction: The right text in STATIC FUNCTION ADO_RELEVAL( nWA, aRelInfo ) is \"allowed\"\n\nIn tryadordd.prg the relation should finished after the Do WHILE...\n\nMSGINFO(\"DOES TABLE1 EXISTS ON DB ?\"+CVALTOCHAR(hb_adoRddExistsTable( \"table1\") )) shows .F. ???",
"time": "08:03",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "byte-one,\n\nIll change it to IndexExt() and TableExt()\n\n[quote:1rydea7s]Little correction: The right text in STATIC FUNCTION ADO_RELEVAL( nWA, aRelInfo ) is \"allowed\"[/quote:1rydea7s]\n\nSorry Im not getting it.\n\nIf you want to test it simply place SET RELATION TO or not if you want try it browse fields from 2 areas to see it.\n\nhb_adoRddExistsTable - This only queries the Schema I think if you are using Access it doesn't work.\nI didn't do it because who wants access when you can have any SQL database?\n\nThanks for your info.",
"time": "09:01",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nCan you please post last version?.\n\nIn that version, dbcreate takes default database name indicated in SET ADO DEFAULT DATABASE TO command?.\n\nThank you.",
"time": "06:45",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nI think last version posted already does that.\n\nPlease try it and inform.\n\nMay be you can help me.\nIm still with a problems with dates in MYSQL.\n\n1) Edit a date field and place any date ok.\n\n2) Delete that date and leave it blank date ok\n\n3) Edit again and place a new date ok bu if edit iit again and keep the date blank error! \nI try with adoshowerror but nothing only unknown error.\n\nDo you have any clue?\n\nHow can we set a date field with empty date?",
"time": "07:50",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nIt´s not working:\n\nAfter creating a new table:\n\n Error description: (DOS Error 2) DBFCDX/1003 Open error: C:\\ADORDD2015\\TLOCKS.CDX\n\nStack Calls\n===========\n Called from: => ORDLISTADD( 0 )\n Called from: ../../../rddord.prg => DBSETINDEX( 0 )\n Called from: test.prg => ADO_GETUNLOCK( 2776 )\n\n\nAlso, Append does not work fine.\n\nThe first time I append a record:\n\n[img:32hq8cs5]http://i57.tinypic.com/nyg3uw.jpg[/img:32hq8cs5]\n\nWhen appending next records, it seems ok.",
"time": "08:55",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas ,\n\nWhat version are you using?",
"time": "09:07",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n \"AdoRdd Version 1.150515/2\"",
"time": "09:11",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nError lines dont match that version.\n\nCan you post lines here?\n\nTlocks file does not exist? Was not created?",
"time": "09:24",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nPlease, try this sample:\n\n[code=fw:1y1q83ot]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"adordd<span style=\"color: #000000;\">\\a</span>dordd.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"adordd<span style=\"color: #000000;\">\\a</span>dordd.prg\"</span><br /><br /><br /><br />REQUEST ADORDD, DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /> RddRegister<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ADORDD\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><br /> RddSetDefault<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ADORDD\"</span><span style=\"color: #000000;\">)</span><br /><br /><br /> SET ADODBF TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /><br /> SET ADO TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /><br /> SET ADO <span style=\"color: #00C800;\">DEFAULT</span> RECNO FIELD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"ID\"</span><br /><br /> <span style=\"color: #B900B9;\">// SET AUTOPEN ON //might be OFF if you wish</span><br /> <span style=\"color: #B900B9;\">// SET AUTORDER TO 1 // first index opened can be other</span><br /><br /><br /> SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DATABASE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"LUCASTABLE.MDB\"</span> ENGINE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"ACCESS\"</span> USER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"\"</span> PASSWORD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"\"</span><br /><br /><span style=\"color: #B900B9;\">// SET ADO LOCK CONTROL SHAREPATH TO \"C:\" RDD TO \"DBFCDX\"</span><br /><br /><br /><br /> <span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"LUCASTABLE.MDB\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"creating LUCASTABLE.MDB\"</span><span style=\"color: #000000;\">)</span><br /><br /> DbCreate<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"FIRST\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"LAST\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"AGE\"</span>, <span style=\"color: #ff0000;\">\"N\"</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"ID\"</span> ,<span style=\"color: #ff0000;\">\"+\"</span>,<span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #ff0000;\">\"ADORDD\"</span> <span style=\"color: #000000;\">)</span><br /><br /> DbCreate<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"NOMBRE\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"ID\"</span> ,<span style=\"color: #ff0000;\">\"+\"</span>,<span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #ff0000;\">\"ADORDD\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /><br /><br /> <span style=\"color: #B900B9;\">//</span><br /> <span style=\"color: #B900B9;\">// Open DBFS</span><br /> USE LUCAS <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"LUCAS\"</span><br /> LUCAS-><span style=\"color: #000000;\">(</span>ORDSETFOCUS<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> ?ordsetfocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> BROWSE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /> <span style=\"color: #B900B9;\">//</span><br /> USE TABLE1 <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"TEST2\"</span> <span style=\"color: #00C800;\">NEW</span><br /> OrdSetFocus<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"TEST1\"</span><span style=\"color: #000000;\">)</span><br /> ?ordsetfocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> TEST2-><span style=\"color: #000000;\">(</span> OrdSetFocus<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"TEST2\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span>ordsetfocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\"Changed to TEST2\"</span> <span style=\"color: #000000;\">)</span><br /><br /><br /><br /> XBROWSER FASTEDIT<br /><br /><br /><br /><br /> APPEND BLANK<br /> test2->First := <span style=\"color: #ff0000;\">\"HOMER si no Homer\"</span><br /> test2->Last := <span style=\"color: #ff0000;\">\"Simpson\"</span><br /> test2->Age := <span style=\"color: #000000;\">45</span><br /><br /> APPEND BLANK<br /> test2->First := cValToChar<span style=\"color: #000000;\">(</span> nRandom<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\" aaa Lara\"</span><br /> test2->Last := <span style=\"color: #ff0000;\">\"Croft si no\"</span><br /> test2->Age := <span style=\"color: #000000;\">32</span><br /><br /><br /> GO TOP<br /><br /> Browse<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> DbCloseAll<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1y1q83ot]",
"time": "09:31",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAlso indexes with conditions do not work, here LUCAS2:\n\n\n SET ADODBF TABLES INDEX LIST TO { { \"TABLE1\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} },;\n {\"LUCAS\", {\"LUCAS1\", \"NOMBRE\"} ,;\n {\"LUCAS2\", \"NOMBRE\", \"FOR NOMBRE = 'AGAMENON'\"} } }",
"time": "09:47",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nYour trial its working ok!\n\nPlease note as in Harbour before ORDSETFOCUS() you need to SET INDEX TO if SET AUTO OPEN not defined.\n\nAppends are done ok.\n\nTlocks its created ok.",
"time": "10:01",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nIm not working with xBrowse so I didnt try with it.\n\nIs the problem with xbrowse? Does browse works ok?",
"time": "10:04",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nIts working ok.\n\nCorrect syntax:\n\n[code=fw:1k96a21p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> SET ADODBF TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span>,<span style=\"color: #ff0000;\">\"NOMBRE = 'AGAMENON'\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /><br /> SET ADO TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span>,<span style=\"color: #ff0000;\">\"WHERE NOMBRE = 'AGAMENON'\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <br /> </div>[/code:1k96a21p]",
"time": "10:17",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nXbrowse seems to be working fine.\n\nI delete tlocks and it seems to be working now.\n\nBut indexes with conditions no:\n\n[code=fw:3vbl535g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /> SET ADO TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS2\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /> SET ADODBF TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS\"</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span><span style=\"color: #000000;\">}</span> ,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"LUCAS2\"</span>, <span style=\"color: #ff0000;\">\"NOMBRE\"</span>, <span style=\"color: #ff0000;\">\"WHERE NOMBRE = 'AGAMENON'\"</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /> <span style=\"color: #B900B9;\">//</span><br /> <span style=\"color: #B900B9;\">// Open DBFS</span><br /> USE LUCAS <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"LUCAS\"</span><br /> LUCAS-><span style=\"color: #000000;\">(</span>ORDSETFOCUS<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LUCAS1\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> ?ordsetfocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> BROWSE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /> LUCAS-><span style=\"color: #000000;\">(</span>ORDSETFOCUS<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LUCAS2\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> dbgotop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ?ordsetfocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> xbrowser fastedit<br /><br /><br /><br /> </div>[/code:3vbl535g]\n\n\nLUCAS2 index does not eval the condition.",
"time": "10:19",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nPlace in adordd at line 2231 MSGINFO(CSQL) is teh select correct?",
"time": "10:24",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In wich function?.\n\nI had to remove some of your starting code at adordd.prg so as to compile with Harbour.",
"time": "10:26",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nIndex condition its working \nLucas table its empty I try it with:\n\n {\"TEST3\", \"AGE\",\"WHERE AGE = 32\"} }\n\nPlease place this function in your trials to check rdd status.\n\n[code=fw:2voeyzei]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> rddreport<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> cerrorlog := <span style=\"color: #ff0000;\">\"\"</span>,n,j,ntarget,x<br /><br /> <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">255</span><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cErrorLog += CRLF + Str<span style=\"color: #000000;\">(</span> n, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\": \"</span> + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == n,<span style=\"color: #ff0000;\">\"=> \"</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">)</span> + ;<br /> PadR<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">)</span> + Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"NomeRDD: \"</span> + ;<br /> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> RddName<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" ==============================\"</span> + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" RecNo RecCount BOF EOF\"</span> + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" \"</span> + Transform<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\"99999\"</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" \"</span> + Transform<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> RecCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\"99999\"</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" \"</span> + cValToChar<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> BoF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" \"</span> + cValToChar<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> EoF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + CRLF + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" Índices em uso \"</span> + Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">23</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"TagName\"</span> + CRLF<br /> <br /> <span style=\"color: #00C800;\">for</span> j = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">15</span><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> IndexKey<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> IndexOrd<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == j, <span style=\"color: #ff0000;\">\"=> \"</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">)</span> + ;<br /> PadR<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> IndexKey<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">35</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdName<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + ;<br /> CRLF<br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> <br /> cErrorLog += CRLF + <span style=\"color: #ff0000;\">\" Relações em uso \"</span> + CRLF<br /> <span style=\"color: #00C800;\">for</span> j = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">8</span><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nTarget := <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbRSelect<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> + Str<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\": \"</span> + ;<br /> <span style=\"color: #ff0000;\">\"TO \"</span> + <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbRelation<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" INTO \"</span> + <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> nTarget <span style=\"color: #000000;\">)</span> + CRLF<br /> <span style=\"color: #B900B9;\">// uValue = ( Alias( n ) )->( DbRelation( j ) )</span><br /> <span style=\"color: #B900B9;\">// cErrorLog += cValToChar( &( uValue ) ) + CRLF</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> x := <span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">alias</span><span style=\"color: #000000;\">(</span>n<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>dbrlocklist<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"Registos fechados \"</span>+CRLF<br /> <span style=\"color: #00C800;\">for</span> j = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>x<span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"Registo nr \"</span>+str<span style=\"color: #000000;\">(</span>x<span style=\"color: #000000;\">[</span>j<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span>+CRLF<br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> SHOWMEMO<span style=\"color: #000000;\">(</span>cerrorlog<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> .t.<br /><br /> </div>[/code:2voeyzei]",
"time": "10:32",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:319bs5u7]\nMay be you can help me.\nIm still with a problems with dates in MYSQL.\n\n1) Edit a date field and place any date ok.\n\n2) Delete that date and leave it blank date ok\n\n3) Edit again and place a new date ok bu if edit iit again and keep the date blank error! \nI try with adoshowerror but nothing only unknown error.\n\nDo you have any clue?\n\nHow can we set a date field with empty date?\n[/quote:319bs5u7]\n\nCan you help me with this?",
"time": "10:33",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nWhere are you putting this?\n\n{\"TEST3\", \"AGE\",\"WHERE AGE = 32\"} }\n\nIn SET ADO TABLES or in SET ADODBF TABLES?.\n\nAs long as I can´t use adordd in a full working application, I can´t test dates behaviour.",
"time": "10:37",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:j4ig4go9]Where are you putting this?\n\n{\"TEST3\", \"AGE\",\"WHERE AGE = 32\"} }\n\nIn SET ADO TABLES or in SET ADODBF TABLES?.\n[/quote:j4ig4go9]\n\nIn SET ADO TABLES the sql expressions never clipper expression\nIn SET ADODBF TABLES only clipper expressions. In conditions please don't place FOR or WHILE keyword but only the condition.Ex \"AGE = 32\"\n\nThat s it.\n\n[quote:j4ig4go9]As long as I can´t use adordd in a full working application, I can´t test dates behaviour.[/quote:j4ig4go9]\n\nIf you create a date field in your trail DB you will see what is the problem when changing it to empty.",
"time": "10:44",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nIt´s not working:\n\n\n SET ADO TABLES INDEX LIST TO {{ \"TABLE1\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} },;\n {\"LUCAS\", {\"LUCAS1\", \"NOMBRE\"} ,;\n {\"LUCAS2\", \"NOMBRE\", },;\n {\"LUCAS3\", \"NOMBRE\"} } }\n\n\n SET ADODBF TABLES INDEX LIST TO { { \"TABLE1\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} },;\n {\"LUCAS\", {\"LUCAS1\", \"NOMBRE\"} ,;\n[b:hgsr4iey] {\"LUCAS2\", \"NOMBRE\", \"NOMBRE = 'AGAMENON'\"},;\n {\"LUCAS3\", \"NOMBRE\", \"ACTIVO = .T.\" } } }[/b:hgsr4iey]\n\n\n\nI set ordsetfocus to LUCAS2 or LUCAS3 with NO LUCK.",
"time": "10:50",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:34dn17c8]\n\n 1: => LUCAS NomeRDD: ADORDD\n ==============================\n RecNo RecCount BOF EOF\n 2 3 .F. .F.\n\n Índices em uso TagName\n NOMBRE LUCAS1\n NOMBRE LUCAS2\n => NOMBRE LUCAS3\n\n Relações em uso \n Registos fechados \n\n[/quote:34dn17c8]",
"time": "10:52",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nTry it like this:\n\n//sql expressions only\nSET ADO TABLES INDEX LIST TO {{ \"TABLE1\", {\"TEST1\", \"FIRST\"} ,;\n{\"TEST2\", \"LAST\"} ,;\n{\"TEST3\", \"AGE\"} },;\n{\"LUCAS\", {\"LUCAS1\", \"NOMBRE\"} ,;\n{\"LUCAS2\", \"NOMBRE\", \"WHERE NOMBRE = 'AGAMENON'\"},;\n{\"LUCAS3\", \"NOMBRE\",\"WHERE ACTIVO = TRUE\" } } } //Maybe its not TRUE but 1 I dont know\n\n//clipper expression only\nSET ADODBF TABLES INDEX LIST TO { { \"TABLE1\", {\"TEST1\", \"FIRST\"} ,;\n{\"TEST2\", \"LAST\"} ,;\n{\"TEST3\", \"AGE\"} },;\n{\"LUCAS\", {\"LUCAS1\", \"NOMBRE\"} ,;\n{\"LUCAS2\", \"NOMBRE\", \"NOMBRE = 'AGAMENON'\"},;\n{\"LUCAS3\", \"NOMBRE\", \"ACTIVO = .T.\" } } }\n\nNote that when doing this with INDEX ON you only have to use standard clipper expression INDEX ON NOMBRE TO LUCAS3 FOR ACTIVO = .T.",
"time": "10:58",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI guessed that conditions and functions went only to SET ADODBF, as to keep Clipper compatibility.\n\nNow I realze I have to indicate the condition or functions in both cases -SET ADO TABLES and SET ADODBF TABLES-, so in order to be clear, why use only one way?.\n\nI also talked with other users and they agree on considering such point very confusing.\n\nDates are working fine.\n\nThat´s the problem of using such an old version of xHarbour.\n\nThank you.",
"time": "11:04",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:8tg2n5i6]Now I realze I have to indicate the condition or functions in both cases -SET ADO TABLES and SET ADODBF TABLES-, so in order to be clear, why use only one way?.\n\nI also talked with other users and they agree on considering such point very confusing.[/quote:8tg2n5i6]\n\nDont understand what you mean.\n\n[quote:8tg2n5i6]Dates are working fine.\n\nThat´s the problem of using such an old version of xHarbour.[/quote:8tg2n5i6]\n\nGreat!\nDo you know any workaround? I cant update now.",
"time": "11:12",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nFor and while and all Index parameters should be indicated either one way, Clipper or sql format.",
"time": "11:18",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:g4t35176]I guessed that conditions and functions went only to SET ADODBF, as to keep Clipper compatibility.[/quote:g4t35176]\n\nPlease note that functions need to be different.\n\nEx \n\nSQL UCASE = CLIPPER UPPER\nSQL LCASE = CLIPPER LOWER\n\nSo we must enter each corresponding function into SET ADO or SET ADODBF.\n\nAlso please note that as in other rdds such as ADS all functions and vars in indexes must be evaluated before sending it to the server as the funcs or vars do not exist there.\n\n[quote:g4t35176]For and while and all Index parameters should be indicated either one way, Clipper or sql format.[/quote:g4t35176]\n\nIt can be done but its a lot of program work because then adordd would have to make all parsing of all expressions. Its a lot of program work, trial and subject to bugs.\n\nWe always need 2 expressions one for clipper another for sql and they can be much different.\nAll clipper functions as ordfor() indexkey() etc need the clipper expression.\nYou cannot run indexkey() over a sql expression \"NAME+AGE+DATE\"\nYou need \"NAME+STR(AGE)+DTOC(DATE)\" but you can not run sql with this.\n\nThis is much simpler and if there is a problem we know immediately where it is.\nThis is only defined one place in the app and thats it.\n\nIf someone wants to do it like that great but I dont have the time.",
"time": "11:29",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nDates did you try it with mysql?",
"time": "11:36",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nNot yet, but I remember that there were some issues with dates. I have to check.\n\nAlso, about updating xHarbour, unless there is a pcode change, which I doubt, you will be able to keep your Fivewin version, which I guess is what you want.",
"time": "13:55",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nWith MySql the date field problem is:\n\nIf the new value its a empty date and we do:\n\n[code=fw:1w5zg8kh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /><span style=\"color: #00C800;\">IF</span> ADO_FIELDSTRUCT<span style=\"color: #000000;\">(</span> oRecordSet, nField<span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> $ <span style=\"color: #ff0000;\">\"DT\"</span> .AND. EMPTY<span style=\"color: #000000;\">(</span>xValue<span style=\"color: #000000;\">)</span><br /> xValue :=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /> <br />oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := xValue<br /> <br />oRecordSet:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:1w5zg8kh]\n\nIts ok but the field date keeps a value of 1899-12-31 can not be!\n\nIf we use instead of xValue :=0 xValue :=ADONULL() date field is empty but :Update() errors!\n\nAny ideas?",
"time": "17:42",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI have found those big errors so far:\n\nDbCommitAll() produces an error:\n\n[img:72nfsmv1]http://i62.tinypic.com/a3fbit.png[/img:72nfsmv1]\n\nThis filter produces a GPF and a hb_out.log:\n\nSET FILTER TO alltrim(AUXILIAR->RELACION) == alltrim(cValToChar( cCodigo ))\n\nI also have minor things for other post.\n\nThank you.",
"time": "18:56",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nCan you send me by mail Tdatarow and trecset?\nDo you mean then update with dbcommit or skip (ado already does this) as in clipper?\n\nOK Ill tested it with access.\n\nDbcreate its being done checking file exist.\n\nAs for FILE and to keep app code compatibility the ideal was to alter the file function itself to work with adordd or any other file.\nWhere can I find it?\n\nBrowses are ok?\nLocks are ok?\nNavigation ok?",
"time": "21:50",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nThis seems not serious.\nDbcomittall() call ado_flush() that calls :updated() I dont know why it errors like that.\nHere with Mysql sometimes gives also error NOT Supported.\nProbably because there aren't any pending updates?\n\nMy idea its to enclose it in TRY CATCH. with catch doing nothing.\nIn all my trials with MySQL and oledb ADS doesn't seem to have any bad effect.\nWhat do you think?\n\nAbout filter:\nFilter2sql this has been taken from the actual app used with ADS.\nAll harbour used functions must be defined there.\nI believe that cvaltochar its not. Please try STR.\n\nFilter2Sql is used by the app we are using with adordd and it wasn't written by us.\nIts indexkey and ordfor aware.\nAlso please be aware that using filters we have to ensure that besides the filter block there is a filter literal expression.\nIn the app they use it like this :\n\ndbsetfilter(&(\"{ || \" + cfilter + \"}\"), ;\n cfilter )\n\nPlease check .ppo file if translates to that.\n\nPlease check filter2sql and if you need Ill try to help you adding new functions to the arrays.\n\nThis fully satisfy our client needs thats why we didn't changed it.",
"time": "19:33",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nWith set filter to, I changed cvaltochar to str, and I still have the gpf.\n\nMaybe the conversión into SQL is not good:\n\n[img:8now11gj]http://i60.tinypic.com/2dqiv7.png[/img:8now11gj]\n\nAlso, in dbseek -STATIC FUNCTION ADOSEEKSQLFIND()-, there is an error with # and numeric fields. You call to:\n\nSELECT CUSTOMER.* FROM CUSTOMER WHERE CODIGO=#10# ORDER BY CODIGO\n\nBut in ADO should be:\n\nSELECT CUSTOMER.* FROM CUSTOMER WHERE CODIGO=10 ORDER BY CODIGO\n\nAlso, when appending a dbf with 30 fields, I get:\n\nError description: (DOS Error -2147352567) WINOLE/1006 Record is too large. (0x80040E21): Microsoft JET Database Engine\n Args:\n [ 1] = C \n\nStack Calls\n===========\n Called from: => TOLEAUTO:_VALUE( 0 )\n Called from: source\\adordd.prg => ADO_PUTVALUE( 1414 )\n\n\nADO_PUTVALUE( 1414 )\n oRecordSet:Fields( nField - 1 ):Value := xValue\n\nThank you.",
"time": "19:54",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nSorry I forgot that Filter2sql definitely does not work with ACCESS.\n\nI place filter2sql in adordd but still only works with oledb for ADS it misses other DBs syntax.\nIf you want please try :FILTER with SQLTRANSLATE instead\nFilters will be done within coming weeks.\n \nAbout seek this was left overs from trials please test instead of\ncSql := IndexBuildExp(nWA,aWAData[WA_INDEXACTIVE],aWAData,.F.,IF(aSeek[3],aseek[1],aSeek[2] ))\nthis:\ncSql := IndexBuildExp(nWA,aWAData[WA_INDEXACTIVE],aWAData,.F.,aSeek[2] )\n\naseek[1] it was expression to use with :find.\nIll change it here for next post.\n\nAppend\n[code=fw:5yxct79i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error description: <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>DOS</span> Error <span style=\"color: #000000;\">-2147352567</span><span style=\"color: #000000;\">)</span> WINOLE/<span style=\"color: #000000;\">1006</span> Record is too large. <span style=\"color: #000000;\">(</span>0x80040E21<span style=\"color: #000000;\">)</span>: <span style=\"color: #000000;\">Microsoft</span> JET Database Engine</div>[/code:5yxct79i]\n\nI have not any idea what this error is maybe Rao or Rick can help us.\nHere with mysql there isnt any problem\nWe append with more than 30 fields.\nThe error doesnt seem to be append but edit as ADO_PUTVALUE I think its not called from ADO_APPEND.\n\nPlease check also field types (any dates?)\n\nThere was a bug in your version please replace the function might solve it although I dont think.\n\n[code=fw:5yxct79i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> ADOSTRUCT<span style=\"color: #000000;\">(</span> oRs <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> aStruct := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAL</span> n<br /><br /> <span style=\"color: #00C800;\">FOR</span> n := <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> oRs:<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">Count</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">-1</span><br /> AADD<span style=\"color: #000000;\">(</span> aStruct, ADO_FIELDSTRUCT<span style=\"color: #000000;\">(</span> oRs, n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> aStruct </div>[/code:5yxct79i]",
"time": "20:31",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAppend blank and error with dates are related.\n\nTdatarow does it in a different way, it updates at once all fields.\n\nTry to comment out oRecordSet:Update() at ADO_PUTVALUE( nWA, nField, xValue ).\n\nFor filtering, maybe in tRecSet class there is a method.\n\nRemember, once you work with Acess you will be able to work with the rest of rbdms, including MySQL. Opposite is not true, as mysql has own functions not supported by ADO.\n\nAlso, for future you may take into acount:\n\nIssuing dbcreate when the table is already created does not arrise an error. Or previousy check if the table exists or not; if yes, don´t create.\n\nAn equivalent function for IF FILE \"MYDBF.DBF\", as now should reflect as a table into a database.\n\nAdofuncs.prg provide such functions.\n\nThanks.",
"time": "20:55",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThis could be the fix for FUNCTION ADO_PUTVALUE( nWA, nField, xValue ):\n\n[code=fw:18c6nevb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #B900B9;\">//oRecordSet:Fields( nField - 1 ):Value := xValue</span><br /> <span style=\"color: #B900B9;\">//oRecordSet:Update()</span><br /><br /> oRecordSet:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span> nField - <span style=\"color: #000000;\">1</span>, IfNil<span style=\"color: #000000;\">(</span> xValue, AdoNull<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:18c6nevb]\n\nBut ADO_APPEND( nWA, lUnLockAll ) is still failing with Record is too large. (Error 3047). Here we need Mr. Enrico, Mr. Rick or Mr. Nages advice.\n\nAlso SET SCOPE TO nVal, where nVal is a numeric fails too.\n\nAbout filtering, why don´t you use ADO command Filter()?.\n\nAs those erros are still present, I can´´t work with my App.",
"time": "08:22",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:2hmj5ugh]oRecordSet:Update( nField - 1, IfNil( xValue, AdoNull() ) )[/quote:2hmj5ugh]\n\nIm going to try it.\nThe date errors only happens (MySql) when you edit a empty date and save the same empty date.\nThats why we didnt have found it before although the app makes lot of transactions but never in this circumstance.\nWhen the user in a browse does that errors.\n\nI know that expressions with numbers in SCOPES and perhaps INDEX mail fail. Fortunatly we dont have such cases in the app. Ill give it a look asap.\nThe app we are working doesnt have SCOPES so its done but never tried.\nCan you post an example based on your trial tables?\n\nOur client wants the filters as they have with ADS. They are lightning fast thus we have to do it that way.\nFilters we will convert it for now to Mysql expressions only.\n\nAbout record size we dont have the error here. We have tables with more than 60 fields.\nIve try it already with Mysql and Access.\nWhat is the record size causing your problem?",
"time": "08:42",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nWhat is your email to send the database?.\n\nThe database has some fields with 80 or more chars.\n\nAbout scopes, try to do\n\nSET SCOPE TO ID = 10",
"time": "09:08",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nI tried your code last post. \nResult is the same if I edit a field date in browse() with an empty date and make enter with empty date errors.\nIf I do the same but enter a date ok\nIf I do the same and clean that date ok\n\ndisal.antonio.ferreira at gmail.com\n\nIll try scopes asap",
"time": "09:20",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:24j14zwf]The database has some fields with 80 or more chars.[/quote:24j14zwf]\n\nOurs some fields with 200 chars. \n\nCan you check exact recsize()",
"time": "09:24",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, returns 6763.\n\nThanks.",
"time": "09:31",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nThanks Ill try it.\n\nAbout dates the only way it works with access and mysql is placing in ADO_PUTVALUE :\n\n[code=fw:84c582us]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">IF</span> ADO_FIELDSTRUCT<span style=\"color: #000000;\">(</span> oRecordSet, nField<span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> $ <span style=\"color: #ff0000;\">\"DT\"</span> .AND. <span style=\"color: #000000;\">(</span>EMPTY<span style=\"color: #000000;\">(</span>xValue<span style=\"color: #000000;\">)</span> .OR. FW_TTOD<span style=\"color: #000000;\">(</span> xValue <span style=\"color: #000000;\">)</span> == <span style=\"color: #000000;\">{</span>^ <span style=\"color: #000000;\">1899</span>/<span style=\"color: #000000;\">12</span>/<span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /><br /> xValue := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:84c582us]\n\n\nBut Ill get back to the problem that the date field stays with 31/12/1899.\nSQL dates support dates from 01/01/1900 on maybe thats why blank dates are 31.12.1899 23:59:59\n\nIm trying in ADO_GETVALUE() to return a empty date in this condition otherwise this doesnt work for me.\n\nCan you try it there and confirm?",
"time": "09:50",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nI think dates problem its solved. (Access Mysql oledb ADS)\n\nIve found out that when the field date is empty the fields:value type its \"U\" and can not be accessed in this state.\nWhen we entered a field date empty and issue update with nothing it errors saying MEMBERNOTFOUND\n\nIll end you new version during today.",
"time": "11:53",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nSET SCOPE fix seems to be:\n\nSTATIC FUNCTION ADOSCOPE(nWA,aWAdata, oRecordSet, aOrderInfo,nIndex)\n\n IF LEN(ALLTRIM( cvaltochar(aWAData[ WA_SCOPETOP ][y]) + cvaltochar(aWAData[ WA_SCOPEBOT ][y])) ) > 0\n\nScopetop and ScopeBot can be a numeric.\n\n\nFields names greater that 8 chars fail.\n\n\nAlso, in DbCreate() I will add the following feature. In ADOSTRUCTTOSQL( aWAData,aStruct ,lAddAutoInc) I will check if aStruct has the default ID Autoincrement field, usually called HBRECNO. If there is no autoincrement \"+\" field, I will add to the array:\n\naAdd( aStruct, { \"HBRECNO\", \"+\", 15, 0 } )\n\n\nThanks.",
"time": "12:11",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nIm looking at SET SCOPE and SET FILTER.\n\n[quote:3vb7s4yf]Fields names greater that 8 chars fail.[/quote:3vb7s4yf]\n\nWhere at scopes? Filedname() returns the :field:name\n\nCan you try fieldname() function?",
"time": "12:24",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\n[quote:1shju79x]Also, in DbCreate() I will add the following feature. In ADOSTRUCTTOSQL( aWAData,aStruct ,lAddAutoInc) I will check if aStruct has the default ID Autoincrement field, usually called HBRECNO. If there is no autoincrement \"+\" field, I will add to the array:\n\naAdd( aStruct, { \"HBRECNO\", \"+\", 15, 0 } [/quote:1shju79x]\n\nGood idea! Please post your change here.",
"time": "12:26",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[code=fw:1aqshgke]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADOSTRUCTTOSQL<span style=\"color: #000000;\">(</span> aWAData,aStruct ,lAddAutoInc<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> cSql := <span style=\"color: #ff0000;\">\"\"</span>, nCol<br /> <span style=\"color: #00C800;\">LOCAL</span> oCn := aWAData<span style=\"color: #000000;\">[</span> WA_CONNECTION <span style=\"color: #000000;\">]</span><br /> <span style=\"color: #00C800;\">LOCAL</span> dbEngine := aWAData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span>, nver :=<span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">LOCAL</span> aEngines := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"DBASE\"</span>,<span style=\"color: #ff0000;\">\"ACCESS\"</span>,<span style=\"color: #ff0000;\">\"MSSQL\"</span>,<span style=\"color: #ff0000;\">\"MYSQL\"</span>,<span style=\"color: #ff0000;\">\"ORACLE\"</span>,<span style=\"color: #ff0000;\">\"SQLITE\"</span>,;<br /> <span style=\"color: #ff0000;\">\"FOXPRO\"</span>,<span style=\"color: #ff0000;\">\"POSTGRE\"</span>,<span style=\"color: #ff0000;\">\"INFORMIX\"</span>,<span style=\"color: #ff0000;\">\"ANYWHERE\"</span>,<span style=\"color: #ff0000;\">\"ADS\"</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAL</span> snDbms := ASCAN<span style=\"color: #000000;\">(</span>aEngines,dbEngine<span style=\"color: #000000;\">)</span>,c<br /><br /><br /> <span style=\"color: #00C800;\">if</span> AScan<span style=\"color: #000000;\">(</span> aStruct , <span style=\"color: #ff0000;\">\"HBRECNO\"</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">0</span><br /> aAdd<span style=\"color: #000000;\">(</span> aStruct, <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"HBRECNO\"</span>, <span style=\"color: #ff0000;\">\"+\"</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><br /><br /> </div>[/code:1aqshgke]",
"time": "12:32",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nThanks.\n\nAbout fieldname we are limited to 10 chars long not 8\nThis its (x)Harbour limitation. adordd simply returns :field:name but then usrrdd cuts it to 10 chars long.\n\nFor us no problem is it for you? Although this is a huge limitation in SQL.\n\nWe need Antonio to help us solve this limitation.",
"time": "12:50",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\naWAData[ WA_SCOPETOP ][y] and aWAData[ WA_SCOPEBOT ][y] seems that are SCOPE´s values.\n\nYou are issuing LEN(ALLTRIM( ..., but those Scope values could be a number, or a date, so that´s why it fails.",
"time": "14:19",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nWe can use\n\n[code=fw:2u04vt8n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> .OR. !EMPTY<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span></div>[/code:2u04vt8n]\n\nCan you try it?",
"time": "14:47",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nThere another bug in adoscope.\n\nPlease replace with this code: (note the 2 commented aadd)\n\n[code=fw:lglgkv8g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">CASE</span> nIndex == DBOI_SCOPETOP<br /><br /> <span style=\"color: #00C800;\">IF</span> y > <span style=\"color: #000000;\">0</span><br /> aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_RESULT <span style=\"color: #000000;\">]</span> := aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">//RETURN ACTUALSCOPE TOP</span><br /> aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span> := aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_NEWVAL <span style=\"color: #000000;\">]</span><br /> <span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> < y<br /> AADD<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span>,SPACE<span style=\"color: #000000;\">(</span>LEN<span style=\"color: #000000;\">(</span>CVALTOCHAR<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//THERE INST STILL A SCOPEBOT ARRAYS MUST HAVE SAME LEN</span><br /> <span style=\"color: #00C800;\">ENDIF</span> <br /> <span style=\"color: #00C800;\">ELSE</span><br /> AADD<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span>,aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_NEWVAL <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//AADD(aWAData[ WA_SCOPEBOT ],SPACE(LEN(CVALTOCHAR(aWAData[ WA_SCOPETOP ][1])))) //THERE INST STILL A SCOPEBOT ARRAYS MUST HAVE SAME LEN</span><br /> aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_RESULT <span style=\"color: #000000;\">]</span> := <span style=\"color: #ff0000;\">\"\"</span><br /> <span style=\"color: #00C800;\">ENDIF</span> <br /> <br /> <span style=\"color: #00C800;\">CASE</span> nIndex == DBOI_SCOPEBOTTOM<br /><br /> <span style=\"color: #00C800;\">IF</span> y > <span style=\"color: #000000;\">0</span><br /> aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_RESULT <span style=\"color: #000000;\">]</span> := aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">//RETURN ACTUALSCOPE TOP</span><br /> aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span> := aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_NEWVAL <span style=\"color: #000000;\">]</span><br /> <span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> < y<br /> AADD<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPETOP <span style=\"color: #000000;\">]</span>,SPACE<span style=\"color: #000000;\">(</span>LEN<span style=\"color: #000000;\">(</span>CVALTOCHAR<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>y<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//THERE INST STILL A SCOPETOP ARRAYS MUST HAVE SAME LEN</span><br /> <span style=\"color: #00C800;\">ENDIF</span> <br /> <span style=\"color: #00C800;\">ELSE</span><br /> AADD<span style=\"color: #000000;\">(</span> aWAData<span style=\"color: #000000;\">[</span> WA_SCOPES <span style=\"color: #000000;\">]</span>,aWAData<span style=\"color: #000000;\">[</span> WA_INDEXACTIVE <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span> WA_SCOPEBOT <span style=\"color: #000000;\">]</span>,aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_NEWVAL <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//AADD(aWAData[ WA_SCOPETOP ],SPACE(LEN(CVALTOCHAR(aWAData[ WA_SCOPEBOT ][1])))) //THERE INST STILL A SCOPETOP ARRAYS MUST HAVE SAME LEN</span><br /> aOrderInfo<span style=\"color: #000000;\">[</span> UR_ORI_RESULT <span style=\"color: #000000;\">]</span> := <span style=\"color: #ff0000;\">\"\"</span><br /> <span style=\"color: #00C800;\">ENDIF</span> <br /><br /> </div>[/code:lglgkv8g]",
"time": "14:56",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nConcerning dbcreate I think the default behavior of (x)Harbour is to override a table with the same name.\n\nI think we should keep things as they are. I think our app is expecting this standard behavior.\n\nUser can test hb_adoRddExistsTable( oCn, cTable, cIndex ) before creating new table\n\nConfirm?",
"time": "15:10",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAs filters are not ready i cant work with the full app.",
"time": "15:31",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lucas,\n\nOk Im looking now at filter and it seems easily adapted.\n\nAll other points are already corrected.",
"time": "15:55",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI also sent to your email a sample to test the Record is too large error.\n\nThanks.",
"time": "16:47",
"topic": "ADO RDD xHarbour",
"username": "lucasdebeltran"
}
] |
ADO RDD xHarbour
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.