messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2015-04-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nThanks for sharing it.\nNow adordd do exactly that with set relation to...\n\nDo you have and performance experience with :find?", "time": "08:01", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\n\nUsing :Find you MUST :MoveFirst() before you issue the :Find() .. you might also use :Filter\n\n[code=fw:30albfwl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRsInvoice:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oRsInvoice:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"[InvoiceNumber] = \"</span>+ltrim+str<span style=\"color: #000000;\">&#40;</span>nRepairNumber<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />or<br /><br />oRsInvoice:<span style=\"color: #000000;\">Filter</span> := <span style=\"color: #ff0000;\">\"[InvoiceNumber] = \"</span>+ltrim+str<span style=\"color: #000000;\">&#40;</span>nRepairNumber<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <br /><br />&nbsp;</div>[/code:30albfwl]\n\nRick Lipkin", "time": "16:54", "topic": "ADO RDD xHarbour", "username": "Rick Lipkin" } ]
ADO RDD xHarbour
[ { "date": "2015-04-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nAdordd uses seek in the following way (also with relations).\nIt works just like dbfs any changes needed in app code. See the code\n\nWe will have another function adoseek(cKey) to build a recordset with the ckey expresssion as where clause\nand adoseek() to revert to the previous recordset. \n\nIts faster than the ado_seek() but you will need to insert these changes into your app code.\n\n\n[code=fw:9a49e3i0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_SEEK<span style=\"color: #000000;\">&#40;</span> nWA, lSoftSeek, cKey, lFindLast <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oRecordSet := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aSeek,cSql,nRecno,oRs := TempRecordSet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> lSoftSeek <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> cKey <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> lFindLast <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> lFindLast <span style=\"color: #0000ff;\">TO</span> .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> lSoftSeek <span style=\"color: #0000ff;\">TO</span> .F.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRecordSet<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := ! oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; MSGALERT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"No Index active seek not allowed!\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//SHOULD RAISE ERROR</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;aSeek := ADOPseudoSeek<span style=\"color: #000000;\">&#40;</span>nWA,cKey,aWAData,lSoftSeek<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//this tell us if we are in a subset of records from previous seek we need to reset to defaut to have another seek</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span>WA_ISITSUBSET<span style=\"color: #000000;\">&#93;</span> .AND. aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #B900B9;\">//ONLY IF ITS FIND IF SEEK NEW RECORDSET WILL BE ALWAYS CREATED</span><br /><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cSql := IndexBuildExp<span style=\"color: #000000;\">&#40;</span>nWA,aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span>,aWAData<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> cSql,aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #B900B9;\">//no more than one field in the expression we can use find</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//eof control doesnt matter in seek that are really selects THATS WHY ITS HERE</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//for finds lets place in &nbsp;row 1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oRecordSet:<span style=\"color: #000000;\">EOF</span> .OR. oRecordSet:<span style=\"color: #000000;\">BOF</span> .OR. &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> .OR. aWAData<span style=\"color: #000000;\">&#91;</span> WA_BOF <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_BOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">BOF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lSoftSeek <br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//SEE PSEUDOSEEK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lFindLast<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveLast</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,,adSearchBackward<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span>&nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//attention multiple fields in cseek expression cannot emulate behaviour of lSoftSeek </span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//more than one field in the seek expression has to be select</span><br /><span style=\"color: #B900B9;\">//MSGINFO(aSeek[2])</span><br />&nbsp; &nbsp; &nbsp; cSql := IndexBuildExp<span style=\"color: #000000;\">&#40;</span>nWA,aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span>,aWAData,.F.,aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//MSGINFO(CSQL)</span><br />&nbsp; &nbsp; &nbsp; oRs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSql,aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//new temp recordset</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRs<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//FOUNDED!</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lFindLast <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRS:<span style=\"color: #000000;\">MoveLast</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span>&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_FIELDRECNO<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// 100% SUPPORTED AND SAFE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nRecno := oRS:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_FIELDRECNO<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> <span style=\"color: #B900B9;\">//field autoinc</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oRS:<span style=\"color: #000000;\">Supports</span><span style=\"color: #000000;\">&#40;</span>adBookmark<span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* Although the Supports method may return True for a given functionality, it does not guarantee that <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;the provider can make the feature available under all circumstances. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The Supports method simply returns whether the provider can support the specified functionality,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;assuming certain conditions are met. For example, the Supports method may indicate that a <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Recordset object supports updates even though the cursor is based on a multiple table join, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;some columns of which are not updatable*/</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oRS:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> .or. oRS:<span style=\"color: #000000;\">Bof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nRecno := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span>&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nRecno := oRS:<span style=\"color: #000000;\">BookMark</span><br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span>&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//ATTENTION NOT WORKING CORRECTLY WITH DELETED ROWS!2&nbsp; &nbsp; </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRecno := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> oRS:<span style=\"color: #000000;\">AbsolutePosition</span> == adPosEOF, oRS:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span>, oRS:<span style=\"color: #000000;\">AbsolutePosition</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//MUST TAKE OUT THE DELETED ROWS! OTHERWISE WRONG NRECNO </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//TODO nRecno := nRecno-nDeletedRows </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span>&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ADO_GOTO<span style=\"color: #000000;\">&#40;</span>nWA,nRecno<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span> &nbsp;<span style=\"color: #B900B9;\">//NOT FOUND!</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// lSoftSeek DONT KNOW HOWTO!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//TO CHECK NEXT CALLS IF WE ARE IN A SUBSSET TO REVERT TO DEFAULT SET</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span>WA_ISITSUBSET<span style=\"color: #000000;\">&#93;</span> := .F.<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; oRs:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span>&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := ! oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp;</div>[/code:9a49e3i0]", "time": "17:30", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Enrico, Lucas,\n\nDo you have any experience use SELECT * FROM cTable with adUseServer and adUserClient ?\n\nDoes ADO load all rows? Is there a way to avoid that? CacheSize? MaxRecords?\n\nI have now a new adordd version imitating 100% dbf behaviour, however Im afraid that during trials this will be slow because of the use of SELECT as explained above and the use of find to locate record number.\nWith adUseClient we can use ADO index property for field recno but I dont have any trials on this.\n\nBesides this, with new version all browses in the app work without any changes.\n\nThe tester in our client says that with Oracle, although much slower than ADSrdd its ok.\nIn ADSoledb its slow!\nIn Mysql didnt tried yet.\n\nThe table average size of this application is 100.000 Recs some with > 700.000.\n\nCan you share some of your experience?\n\nHere you have alternatives:\n\n100% compatible dbf behavior\n[code=fw:31strp2h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADOSEEKSQLFIND<span style=\"color: #000000;\">&#40;</span> nWA, lSoftSeek, cKey, lFindLast <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oRecordSet := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aSeek,cSql,nRecno,oRs := TempRecordSet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,E<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> lSoftSeek <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> cKey <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> lFindLast <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> lFindLast <span style=\"color: #0000ff;\">TO</span> .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> lSoftSeek <span style=\"color: #0000ff;\">TO</span> .F.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRecordSet<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := ! oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; MSGALERT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"No Index active seek not allowed!\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//SHOULD RAISE ERROR</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;aSeek := ADOPseudoSeek<span style=\"color: #000000;\">&#40;</span>nWA,cKey,aWAData,lSoftSeek<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;cSql := IndexBuildExp<span style=\"color: #000000;\">&#40;</span>nWA,aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span>,aWAData,.F.,<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>,aseek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSql,aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lSoftSeek .AND. ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRs<span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// DIDNT FIND SFOTSEEK ON LOOK FOR THE NEXT KEY where field > key</span><br />&nbsp; &nbsp; &nbsp; cSql := STRTRAN<span style=\"color: #000000;\">&#40;</span>cSql,<span style=\"color: #ff0000;\">\"SELECT \"</span>,<span style=\"color: #ff0000;\">\"SELECT TOP 1 \"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//first following record SOFTSEEK</span><br />&nbsp;&nbsp; &nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSql,aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRs<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//FOUNDED!</span><br />&nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lFindLast<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style=\"color: #000000;\">MoveLast</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span>&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_FIELDRECNO<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// 100% SUPPORTED AND SAFE</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRecno := oRS:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_FIELDRECNO<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oRS:<span style=\"color: #000000;\">Supports</span><span style=\"color: #000000;\">&#40;</span>adBookmark<span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//Although the Supports method may return True for a given functionality, it does not guarantee that </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//the provider can make the feature available under all circumstances. </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//The Supports method simply returns whether the provider can support the specified functionality,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//assuming certain conditions are met. For example, the Supports method may indicate that a </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//Recordset object supports updates even though the cursor is based on a multiple table join, </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//some columns of which are not updatable</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oRS:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> .or. oRS:<span style=\"color: #000000;\">Bof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; nRecno := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span>&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRecno := oRS:<span style=\"color: #000000;\">BookMark</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span>&nbsp; &nbsp;&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//ATTENTION NOT WORKING CORRECTLY WITH DELETED ROWS!2&nbsp; &nbsp;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nRecno := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> oRS:<span style=\"color: #000000;\">AbsolutePosition</span> == adPosEOF, oRS:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span>, oRS:<span style=\"color: #000000;\">AbsolutePosition</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//MUST TAKE OUT THE DELETED ROWS! OTHERWISE WRONG NRECNO </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//TODO nRecno := nRecno-nDeletedRows </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span>&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; ADO_GOTO<span style=\"color: #000000;\">&#40;</span>nWA,nRecno<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span> &nbsp;<span style=\"color: #B900B9;\">//NOT FOUND!</span><br /><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveLast</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// eof()</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;oRs:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := ! oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//TO CHECK NEXT CALLS IF WE ARE IN A SUBSSET TO REVERT TO DEFAULT SET</span><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span>WA_ISITSUBSET<span style=\"color: #000000;\">&#93;</span> := .F.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_PENDINGREL<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> .AND. PROCNAME<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"ADO_RELEVAL\"</span> <span style=\"color: #B900B9;\">//ENFORCE REL CHILDS BUT NOT IN A ENDLESS LOOP!</span><br />&nbsp; &nbsp; &nbsp; ADO_FORCEREL<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;<br />&nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br /><br />&nbsp;</div>[/code:31strp2h]\n\n\nFast but not 100% compatible dbf behavior \n[code=fw:31strp2h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADOSEEKSQL<span style=\"color: #000000;\">&#40;</span> nWA, lSoftSeek, cKey, lFindLast <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oRecordSet := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aSeek,cSql<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> lSoftSeek <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> cKey <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> lFindLast <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> lFindLast <span style=\"color: #0000ff;\">TO</span> .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> lSoftSeek <span style=\"color: #0000ff;\">TO</span> .F.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; MSGALERT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"No Index active seek not allowed!\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//SHOULD RAISE ERROR</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;aSeek := ADOPseudoSeek<span style=\"color: #000000;\">&#40;</span>nWA,cKey,aWAData,lSoftSeek<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cSql := IndexBuildExp<span style=\"color: #000000;\">&#40;</span>nWA,aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span>,aWAData,.F.,<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>,aseek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,aSeek<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSql,aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//TO CHECK NEXT CALLS IF WE ARE IN A SUBSSET TO REVERT TO DEFAULT SET</span><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span>WA_ISITSUBSET<span style=\"color: #000000;\">&#93;</span> := .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRecordSet<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//FOUND!</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lFindLast<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">MoveLast</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span>&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := ! oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_PENDINGREL<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> .AND. PROCNAME<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"ADO_RELEVAL\"</span> <span style=\"color: #B900B9;\">//ENFORCE REL CHILDS BUT NOT IN A ENDLESS LOOP!</span><br />&nbsp; &nbsp; &nbsp; ADO_FORCEREL<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;<br />&nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp;</div>[/code:31strp2h]", "time": "16:25", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDbeval calls UR_EVALBLOCK that calls ADO_EVALBLOCK.\n\nThere is something missing because the block its not properly evaluated in SUM \n\nCan you help me finding out whats the problem?\n\nIs the RETURN correct?\n\n[code=fw:5xc8pm6v]<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;\">&#40;</span> nArea, bBlock, uResult <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCurrArea<br /><br />&nbsp; &nbsp;nCurrArea := <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nCurrArea != nArea<br />&nbsp; &nbsp; &nbsp; dbSelectArea<span style=\"color: #000000;\">&#40;</span> nArea <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; nCurrArea := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;uResult := Eval<span style=\"color: #000000;\">&#40;</span> bBlock <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nCurrArea > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; dbSelectArea<span style=\"color: #000000;\">&#40;</span> nCurrArea <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp;</div>[/code:5xc8pm6v]", "time": "12:05", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease show me how you use it from your PRG", "time": "16:23", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI solev the problem but dont know if the most correct way.\n\nApp code (does not evaluate nothing)\n[code=fw:1dpglyqm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">sum</span> quantidade <span style=\"color: #0000ff;\">to</span> wreservas <span style=\"color: #00C800;\">for</span> codigoprod+armazem==codigo .and.;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; len<span style=\"color: #000000;\">&#40;</span>alltrim<span style=\"color: #000000;\">&#40;</span>nrfactur<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #000000;\">0</span> <span style=\"color: #00C800;\">while</span> <span style=\"color: #000000;\">&#40;</span>wmain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">setmsg</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Verifcando totais reservas\"</span><span style=\"color: #000000;\">&#41;</span>,.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1dpglyqm]\n\nNew ADO_EVALBLOCK (it evaluates like ths)\n[code=fw:1dpglyqm]<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;\">&#40;</span> nArea, bBlock, uResult <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCurrArea<br /><br />&nbsp; &nbsp;nCurrArea := <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nCurrArea != nArea<br />&nbsp; &nbsp; &nbsp; dbSelectArea<span style=\"color: #000000;\">&#40;</span> nArea <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; nCurrArea := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> PROCNAME<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"ADO_RELEVAL\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// DONT KNOW WHY BUT DBEVAL ONLY WORK LIKE THIS</span><br />&nbsp; &nbsp; &nbsp; UR_SUPER_EVALBLOCK<span style=\"color: #000000;\">&#40;</span> nArea, bBlock, uResult <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span>&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; uResult := Eval<span style=\"color: #000000;\">&#40;</span> bBlock <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nCurrArea > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; dbSelectArea<span style=\"color: #000000;\">&#40;</span> nCurrArea <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp;</div>[/code:1dpglyqm]", "time": "16:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Isn't uResult provided by reference ?\n\nIf not, then this value will be lost:\n\n uResult := Eval( bBlock )\n\nnot sure if it will be also applicable to:\n\nUR_SUPER_EVALBLOCK( nArea, bBlock, uResult )", "time": "17:45", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "UR_SUPER_EVALBLOCK( nArea, bBlock, @uResult ) maybe ?", "time": "17:46", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI dont know if uResult it is provided by reference because its called from dbeval().\n\nDont know why but UR_SUPER_EVALBLOCK( nArea, bBlock, uResult ) works! (without @)\n\nAdordd its almost ready ! Now adordd its a true Rdd!\nThere are big differences from previous posted version. \nIts much slower than DBF or ADS with few users but completely workable and the difference begin to decrease as more users are getting in.\nIll report after the trials.\n\nThe converted app is running quite ok with zero changes in the logic of the code.\nThe only code changes we had to make were for locates and some index creation expressions, nothing else!\n\nNow we are testing every app routine and Im sure that we will still find some small bugs.\n\nWe are still with some minor problems like the display of numeric fields on the browses (right just instead of left just) to be solved.\n\nIll post the last version soon!", "time": "18:21", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYou are doing a great work, congratulations! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:27", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-04-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI await for last release, as current is buggy and can´t be used.\n\nThank you.", "time": "12:21", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-25", "forum": "FiveWin for Harbour/xHarbour", "text": "New version of adordd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->", "time": "19:32", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSome erros when compiling:\n\nSTATIC FUNCTION ADO_OPEN( nWA, aOpenInfo )\n\n IF oRecordSet:CursorLocation = adUseClient\n[b:ny6migfq]THIS LINE\t[/b:ny6migfq]\t oRecordSet:Fields( aWAData[WA_FIELDRECNO] ):Properties(\"Optimize\") := 1\n\t\t ENDIF\n\n\nFUNCTION Filter2Sql(nArea,cTableName,cFiltro)\n\n\nTHIS LINE; [b:ny6migfq]IN[/b:ny6migfq]\t if substr(cfiltro,at(alltrim(upper((cAliasCorr)->(fieldname(n)))),cfiltro)-1,1) in \" (),.##%$=<>\"\n\n\n\nNext, SET ADO DEFAULT DATABASE command does not work with Access.\n\nNext, in this code I get error at USE command:\n\n[quote:ny6migfq] Error description: Error DBCMD/1005 Argument error: DBUSEAREA\n\nStack Calls\n===========\n Called from: => DBUSEAREA( 0 )\n Called from: lucas.prg => MAIN( 43 )\n[/quote:ny6migfq]\n\n\n\nTest sample:\n\n\n[code=fw:ny6migfq]<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<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aArray := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br /><br />&nbsp; &nbsp;RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span> &nbsp; <span style=\"color: #ff0000;\">\"ADORDD\"</span> &nbsp; <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//SET ADO DEFAULT DATABASE TO \"test2.mbd\" &nbsp;ENGINE TO \"ACCESS\"</span><br /><br />&nbsp; &nbsp;ADODEFAULTS<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"test2.mbd\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"ACCESS\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, .f. <span style=\"color: #000000;\">&#41;</span>&nbsp; &nbsp; <span style=\"color: #B900B9;\">//FUNCTION ADODEFAULTS( cDB, cServer, cEngine, cUser, cPass,lGetThem )</span><br /><br />&nbsp; &nbsp;SET ADO <span style=\"color: #00C800;\">DEFAULT</span> RECNO FIELD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HBRECNO\"</span><br /><br />&nbsp; &nbsp;SET AUTOPEN OFF<br /><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">&#40;</span> &nbsp; <span style=\"color: #ff0000;\">\"test2.mdb\"</span> &nbsp; <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; DbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"test2.mdb;table1\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"FIRST\"</span>, &nbsp; <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"LAST\"</span>, &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"AGE\"</span>, &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"N\"</span>, &nbsp;<span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"ADORDD\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><br /><br />&nbsp; &nbsp;USE TABLE1 <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"TEST2\"</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//SET INDEX TO TEST1</span><br /><br />&nbsp; &nbsp;XBROWSER FASTEDIT<br /><br /><br />&nbsp; &nbsp;APPEND BLANK<br />&nbsp; &nbsp;test2->First &nbsp; := <span style=\"color: #ff0000;\">\"HOMER si no Homer\"</span><br />&nbsp; &nbsp;test2->Last &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"Simpson\"</span><br />&nbsp; &nbsp;test2->Age &nbsp; &nbsp; := <span style=\"color: #000000;\">45</span><br /><br />&nbsp; &nbsp;APPEND BLANK<br />&nbsp; &nbsp;test2->First &nbsp; := <span style=\"color: #ff0000;\">\"aaa Lara\"</span><br />&nbsp; &nbsp;test2->Last &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"Croft si no\"</span><br />&nbsp; &nbsp;test2->Age &nbsp; &nbsp; := <span style=\"color: #000000;\">32</span><br /><br /><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbCloseAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />&nbsp;</div>[/code:ny6migfq]", "time": "20:38", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nSorry my mistake with the version posted.\n\nHere is the correct one <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->.\n\nYou should ow be able to run tryadordd.", "time": "09:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Mr Rao,\n\nIm having a problem with Numeric fields Len and Dec.\n\nIve found this in adofuncs.prg:\nMax( 19, oField:Precision + 2 )\n\nWhat does it mean? \n\nNumrericScale = Nr of decimal places\nPrecision = Total field len\n\nnumfield N 11 4\n\nPrecision = 11\nNumericScale = 4\n\nLen = 11\nDec = 4\n\nMaking numeric fields for calculations it round always decimals to 0 although field len and dec are correct.\n\nWhat can we do?", "time": "09:22", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI don´t understand the change in LOCATES:\n\nIF RDDSNAME() = \"ADORDD\" \n hb_adoSetLocateFor( \"pessoa = \"+\"'\"+(MeuNome())+\"'\") \n \t[b:24kjbi6a] locate for \"pessoa = \"+\"'\"+(MeuNome())+\"'\" [/b:24kjbi6a]\nELSE\n...\n\nWe have to keep LOCATE FOR as DBFCDX, so not to use hb_adoSetLocateFor.\n\nOr provide it for complex locating, but not for ordinary use.\n\nIf we have to start changing code, there is no RDD compilant.\n\nThank you.", "time": "10:23", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nPlease remember:\nhb_adoSetLocateFor is needed as LOCATE calls in adordd:\n\nADO_SETLOCATE( nWA, aScopeInfo )\nADO_LOCATE( nWA, lContinue )\n\nUnfortunately aScopeInfo doesnt supply the cFor condition only bFor condition thus we need to set it up before with hb_adoSetLocateFor.\n\nLet me check what we can do.", "time": "11:11", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThnak you for your attention.\n\nAt least, it should support LOCATE FOR Upper(FIELD->City) = Upper(cCity).", "time": "11:17", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nI ve just recheck it and I dont see any other alternative.\n\nYou have to consider :\n\nLOCATE FOR Upper(FIELD->City) = Upper(cCity).\n\nThis s passed to ADO_SETLOCATE in aScopeInfo as a code block.\nWe need hb_adoSetLocateFor to have it as a string.\n\nBut another problem is the hb_adoSetLocateFor( <(for)> ) (adordd.ch) needs to receive it as a string:\n\n\" Upper(FIELD->City) = Upper(cCity)\" \n\nThis cant be evaluated because the variables are out of scope at ado framework.\nThis we must sent as for other rdds like ADS with the value of that var and not the var itself thus you will have to do:\n\n\"Upper(FIELD->City) =\"+\"'\"+ Upper(cCity)+\"'\"\n\nThen the string would be:\n\nUpper(FIELD->City) ='LONDON'\n\nThe same will happen in index expressions with vars.\n\nSorry there isnt any other way.\n\nFor us no problem because the app worked already with ADS and it was already doing that.\n\nNevertheless this should not be a problem because its a very fast change in the app code and does not break any logic of it that's why I proposed the foloowing way of change it:\n\nIF RDDSNAME() = \"ADORDD\" \n //NEW EXPRESSIONS FOR ADO\nELSE\n //AS ALREADY WRITTEN CODE\nENDIF", "time": "11:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:qzd5tovk]\nAntonio, Mr Rao,\n\nIm having a problem with Numeric fields Len and Dec.\n\n[/quote:qzd5tovk]\n\nSolved !", "time": "12:35", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nLocate works now exactly the same as for dbfcdx and others. No need to alter anything in the code.\nI choose to eval(bBlock) in do while performance its almost the same as with find.\n\nIll post new version today.", "time": "17:48", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDid you really fixed LOCATE FOR... command?.\n\nThat´s a great news!.\n\nAlso, there is a mistake on this line:\n\n FUNCTION ADO_OPEN( nWA, aOpenInfo )\n[b:3qymatxo]\n oRecordSet:Fields( aWAData[WA_FIELDRECNO] ):Properties(\"Optimize\") := 1[/b:3qymatxo]\n\n\nThank you.", "time": "18:43", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nIm still solving some problem with LOCATE .\n\n[code=fw:1shukdqz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span>WA_FIELDRECNO<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Properties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Optimize\"</span><span style=\"color: #000000;\">&#41;</span> := <span style=\"color: #000000;\">1</span></div>[/code:1shukdqz]\n\nWhat is the mistake ? Compile ? With xHarbour ok.", "time": "18:48", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIt says:\n\nadordd\\adordd.prg(278) Error E0022 Invalid lvalue ':'", "time": "19:17", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nI have no idea why that error. Here its ok. Is that a compile error?\n\nI posted new adordd.prg and .ch with LOCATE ready. <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nNow you dont need to alter anything <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nI have some funny problem here but I dont know if it is caused by new LOCATE.\n\nPlease check it yourself.", "time": "21:37", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThank you.\n\nWhat sort of new problems did you find?.", "time": "08:32", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I am moving our disucssions to this thread to keep them at one main place.\nYou said:\n[quote:2h6acl7o]\n(ownd:numera)->dataultmov is 28/04/15\ndDataM is 28/04/15\n\nif (ownd:numera)->dataultmov > dDataM\n\nmsginfo(\"Data do ult doc \"+dtoc((ownd:numera)->dataultmov)+CRLF+;\n\"Data deste doc \"+dtoc(dDataM) )\n\nendif\n\nThe code inside the IF should never be executed but it is and the msginfo shows both with the same date 28.04.15. \n\nWhat might be the reason?\n[/quote:2h6acl7o]\n\nFirst recommended caution is to keep always Century on.\n\nMost date fields in various SQL servers store acutally date-time values, not pure truncated date values. Please keep in mind that I said \"most\" not \"all\".\n\nIf for some reasons, the value stored in the field is 28/04/2015 00:00:00.001 then this field value is greater than pure date 28/04/2015. Years back I struggled till I found that xHarbour was adding one extra milli second. ( I do not know if this is ok now)\n\n\nWe need to be extra-cautious while dealing with dates in sql databases. For the purpose of ADORDD, please return truncated date ( with valtype 'D') when the FieldType is \"D\" and full value with valtype 'T' when the field type is 'T'.\n\nI suggest you return FW_TTOD( <fieldvalue> ) when the FieldType is 'D' and FW_DTOT( <fieldvalue> ) when the field value is 'T'. We use this in our XBrowse, TDataRow and TRecSet so that users are insulated from this behavior.\n\nWe need to keep this in mind when preparing SQL statements comparing Dates.\nFor example, SELECT * WHERE INVDT BETWEEN '2015-04-01' AND '2015-04-30' may totally exclude all transactions that took place on 30th Apr 2015. Because this is actually translated as INVDT >= '2015-04-01 00:00:00' and INVDT <= '2015-04-30 00:00:00'. Naturally this query ignores transactions from '2015-04-30 00:00:00.001' till '2015-04-30 23:59:59.999'\nThis is just an example to show how deceptive can be date comparisons. In addition MS Sql server has a very awkward habit of storing '2014-04-01' internally as '2014-04-01 12:00:00' in the field.\nSo, the safer construct is SELECT * WHERE INVDT >= '2015-04-01' AND INVDT < '2015-05-01'. I still see many amatuers committing this mistake which turns out to be a blunder in real life situations.\n\nI hope if you keep this points in mind, everything will work as expected.", "time": "08:37", "topic": "ADO RDD xHarbour", "username": "nageswaragunupudi" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "You said in the other thread.\n\n[quote:2sov47l7]I´ve tested it and it works perfectly with adUseclient and adUserServer cursors.\n[/quote:2sov47l7]\n\nGlad to know it is working well with both client and server-side. \n\nPlease see for reference:\n<!-- m --><a class=\"postlink\" href=\"https://msdn.microsoft.com/en-us/library/ee252458(v=bts.10\">https://msdn.microsoft.com/en-us/librar ... 8(v=bts.10</a><!-- m -->).aspx\n\"https://msdn.microsoft.com/en-us/library/ee252458(v=bts.10).aspx\"\n\n\nExtracts:\n[quote:2sov47l7]\nadLockPessimistic\t2\tThis value indicates pessimistic locking, record by record. The provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately after editing.\nThis lock type is supported by the Microsoft® OLE DB Provider for AS/400 and VSAM and the Microsoft OLE DB Provider for DB2. However, the OLE DB Provider for AS/400 and VSAM internally maps this lock type to adLockBatchOptimistic.\n[/quote:2sov47l7]\nand\n[quote:2sov47l7]\nThe adLockPessimistic setting is not supported if the CursorLocation property is set to adUseClient. If an unsupported value is set, then no error will result; the closest supported LockType will be used instead.\n[/quote:2sov47l7]\n\nYou said:\n[quote:2sov47l7]\nSo we never call :Update() in ADO_PUTVALUE and ADO_APPEND and the :Update is then called only ADO_UNLOCK. Right?\n[/quote:2sov47l7]\nGood Idea.\n[quote:2sov47l7]\nThe app Im converting gets all the new records an locks and then goes through the Locklist array of each table processing each replace.\nSince we move the record we lost the physical lock right?\n[/quote:2sov47l7]\nYes. \nIt appears multi-record locking does not seem possible in ADO. Anyway you need to keep experimenting more on this, simultaneously working as two users on the same table.\n\n[quote:2sov47l7]\nStarting a transaction can eliminate this ?\n[/quote:2sov47l7]\nTransactions and locking are two different things altogether.\nAll updates within one transaction block either they get written or abandoned but never written partially. Normally used for multi-table updataions with the same connection.\n\nTalking about transactions, they work for a single connection. If we open recordsets with connection string each of them will get a separate connection.", "time": "09:00", "topic": "ADO RDD xHarbour", "username": "nageswaragunupudi" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3hrj2j4i]I suggest you return FW_TTOD( <fieldvalue> ) when the FieldType is 'D' and FW_DTOT( <fieldvalue> ) when the field value is 'T'. We use this in our XBrowse, TDataRow and TRecSet so that users are insulated from this behavior.\n[/quote:3hrj2j4i]\n\nI dont have these functions. Can you post them here?\n\n[quote:3hrj2j4i]So, the safer construct is SELECT * WHERE INVDT >= '2015-04-01' AND INVDT < '2015-05-01'. I still see many amatuers committing this mistake which turns out to be a blunder in real life situations.[/quote:3hrj2j4i]\n\nTo avoid apps code change then we could do it:\n\nSELECT * WHERE INVDT BETWEEN '2015-04-01'+'00:00:00:000' AND '2015-04-30'+'23:59:59.999' \n\nadding the time part to the date at adordd.\nResuming we always add at adordd the time part of the date like that. Right?\n\nThanks so much for your help and expertise.", "time": "09:07", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:f0elt87e]Glad to know it is working well with both client and server-side. [/quote:f0elt87e]\n\nIt works in the sense of the locking (with 2 users the 2nd cannot edit) but changing order focus we build a new recordset with the order by clause and closing the current one throws an error.\nAlso if we get the locks and move to other records we loose it.\n\nI think the only alternative is to have another field or a table to do it but we still didn't find how.\nDo you have any idea?\n\nAlso using adUseclient seems not to work ok with our browses. adUseServer ok.\nBut adUseServer doesnt work with Browse() in ACCESS.\nDont know why.", "time": "09:37", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"lucasdebeltran\":3jx6apyu]Antonio,\n\nThank you.\n\nWhat sort of new problems did you find?.[/quote:3jx6apyu]\n\nPlease check ADO_LOCATE.\nIf we call successive locates although it goes through the records correctly in the do while it does not evaluate the block to .t. after the first time.\n\nPlease try:\n\n[code=fw:3jx6apyu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> n < <span style=\"color: #000000;\">20</span><br />&nbsp; &nbsp; locate <span style=\"color: #00C800;\">for</span> whateverfield = whatevervalue <span style=\"color: #B900B9;\">// existing in the table</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> found<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"found()\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"not found()\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; n++<br /><span style=\"color: #00C800;\">enddo</span><br />&nbsp;</div>[/code:3jx6apyu]\n\nNow if you place a browse() just after locate it goes ok.\nCan you see it?\n\nWe are looking for a explanation.\n\nAntonio, Mr Rao, do you have some clue?", "time": "10:03", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI just sent an email to Mr. Rao asking him", "time": "11:37", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "New adordd version with working locking as dbfs at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nThis is still on trial and its working quite well on heavy transactions many records in many tables.\nIt assures completely record locking and concurrent access control like any other rdd.\n\nThe drawback is that we must use a dbf table in a network share with another rdd for this to work.\nIts very small recsize only 50b and has a recycle scheme for records not needed.\n\nStill have some issues with dates and NULL values in adordd.", "time": "18:26", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAny news regarding date functions?\n\nNow Im taking care of :\ncopy to (cfile) WHILE ....\n\nThis function calls ADO_APPEND but the nWA received its a new one.\nProbably this function selects a new area to copy file to.\n\nCan we somehow change it or do we have to write a replacement from scratch.\nWhere can I find this function?", "time": "09:26", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-04-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[code=fw:2745cf51]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> FW_TTOD <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;hb_retdl<span style=\"color: #000000;\">&#40;</span> hb_pardl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> FW_DTOT <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br /><br />#ifdef __XHARBOUR__<br />&nbsp; &nbsp;hb_retdtl<span style=\"color: #000000;\">&#40;</span> hb_pardl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, hb_part<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />#else<br />&nbsp; &nbsp;long lJulian;<br />&nbsp; &nbsp;long lMilliSecs;<br /><br />&nbsp; &nbsp;hb_partdt<span style=\"color: #000000;\">&#40;</span> &lJulian, &lMilliSecs, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;hb_rettdt<span style=\"color: #000000;\">&#40;</span> lJulian, lMilliSecs <span style=\"color: #000000;\">&#41;</span>;<br />#endif<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:2745cf51]", "time": "20:33", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks for the code.\n\nadordd its working almost perfectly.\n\nAntonio, Mr Rao,\n\nBut I've still 2 pending problems:\n\n1) Fields N without any decimal returning 2 decimals. (xxx.00) Do you have any idea what might be the problem.\n\n2) Locates. Can you check the adordd.prg ado_locate to see what might be the problem?\n\nIf we do :\n\n[code=fw:3aktb8z7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #000000;\">&#40;</span>calias<span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>__dblocate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span>|| namefiled->name = cNname<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3aktb8z7]\n\nThe first time found following times not found.\n\nHave you tried adordd?", "time": "10:58", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote:3fh3rpc1]1) Fields N without any decimal returning 2 decimals. (xxx.00) Do you have any idea what might be the problem.[/quote:3fh3rpc1]\n\nDo you use any C code ? if yes then check if hb_retnd() is used somewhere and change it into hb_retnl()", "time": "16:29", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote:rh3f8fyr]2) Locates. Can you check the adordd.prg ado_locate to see what might be the problem?[/quote:rh3f8fyr]\n\nSurely you need to do a oRecordSet:GoTop() before running the locate code.", "time": "16:30", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":1xfkv8ey]Antonio,\n\n[quote:1xfkv8ey]2) Locates. Can you check the adordd.prg ado_locate to see what might be the problem?[/quote:1xfkv8ey]\n\nSurely you need to do a oRecordSet:GoTop() before running the locate code.[/quote:1xfkv8ey]\n\nxHarbour help\n[quote:1xfkv8ey]\n<Scope> \nThis option defines the number of records to scan. It defaults to ALL. The NEXT <nCount> scope scans the next <nCount> records, while REST scans records beginning from the current record to the end of file. The search begins with the first record unless a scope is defined. \n[/quote:1xfkv8ey]\n\nADO_LOCATE code\n[code=fw:1xfkv8ey]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_LOCATE<span style=\"color: #000000;\">&#40;</span> nWA, lContinue <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oRecordSet := aWAData<span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span>oRecordSet<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !lContinue <br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//START FROM BEGINING</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//WE DONT WANT TO FIND THIS ONE AGAIN</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;CURSORWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> !oRecordSet:<span style=\"color: #000000;\">EoF</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#91;</span>b<span style=\"color: #000000;\">&#93;</span><span style=\"color: #00C800;\">IF</span> EVAL<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_SCOPEINFO <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> UR_SI_BFOR <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span>/b<span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span>&nbsp; <br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; SYSREFRESH<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDDO</span><br />&nbsp; &nbsp;CURSORARROW<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_FOUND <span style=\"color: #000000;\">&#93;</span> := ! oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">EOF</span><br />&nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br />&nbsp;</div>[/code:1xfkv8ey]\n\nSomehow the eval() doesn't return .t. although is passing the record where it should.", "time": "22:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":8i9n31ii]Antonio,\n\n[quote:8i9n31ii]1) Fields N without any decimal returning 2 decimals. (xxx.00) Do you have any idea what might be the problem.[/quote:8i9n31ii]\n\nDo you use any C code ? if yes then check if hb_retnd() is used somewhere and change it into hb_retnl()[/quote:8i9n31ii]\n\nNo hb_retnd() .\nBut if I used it and worked with other rdds should work also with adordd.\n\nAny other idea?", "time": "22:54", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nTry this:\n\n(calias)->(__dblocate( {|| MsgInfo( namefiled->name, cNname ), namefiled->name = cNname} ))\n\nAnd check what it shows\n\n> Fields N without any decimal returning 2 decimals. (xxx.00)\n\nTry to check the size of the field and use int() when its not a decimal", "time": "22:56", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Mr Rao,\n\n[quote:2opahsr4]Try to check the size of the field and use int() when its not a decimal[/quote:2opahsr4]\n\nSolved!\n\nIn adofuncs.prg you have:\n[code=fw:2opahsr4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> nLen &nbsp; &nbsp; := &nbsp;<span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">19</span>, oField:<span style=\"color: #000000;\">Precision</span> + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;</div>[/code:2opahsr4]\n\nShouldnt it be:\n[code=fw:2opahsr4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> nLen &nbsp; &nbsp; := <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">19</span>, oField:<span style=\"color: #000000;\">Precision</span> &nbsp;<span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">//</span></div>[/code:2opahsr4]\n\nOtherwise we will have all fields much bigger because the minimum it will be 19.\nWhy not only oField:Precision?", "time": "09:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote:dlbjhat0](calias)->(__dblocate( {|| MsgInfo( namefiled->name, cNname ), namefiled->name = cNname} ))\n\nAnd check what it shows[/quote:dlbjhat0]\n\nIt seems after 1st time a loose the codeblock I checking why.", "time": "09:12", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":rcb5b8vw]Antonio, Mr Rao,\n\n[quote:rcb5b8vw]Try to check the size of the field and use int() when its not a decimal[/quote:rcb5b8vw]\n\nSolved!\n\nIn adofuncs.prg you have:\n[code=fw:rcb5b8vw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> nLen     :=  <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">19</span>, oField:<span style=\"color: #000000;\">Precision</span> + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>  </div>[/code:rcb5b8vw]\n\nShouldnt it be:\n[code=fw:rcb5b8vw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> nLen     := <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">19</span>, oField:<span style=\"color: #000000;\">Precision</span>  <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">//</span></div>[/code:rcb5b8vw]\n\nOtherwise we will have all fields much bigger because the minimum it will be 19.\nWhy not only oField:Precision?[/quote:rcb5b8vw]\nThanks. I am correcting Max to Min in adofuncs.prg.\n+2 is for ( 1 decimal place and 1 minus sign )", "time": "13:16", "topic": "ADO RDD xHarbour", "username": "nageswaragunupudi" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nAlways both with same size an order.\nOne for ado framework the other for all usual index functions to work correctly.\n\nThe SET ADODBF TABLES INDEX LIST TO must follow the (x)Harbour usual syntax.\n\nThe SET ADO TABLES INDEX LIST TO its for SQL it might even contain SQL functions.", "time": "18:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "New version adordd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nLocks and exclusive use working.\n\nDates and numbers working.\n\nLocates working.\n\nAny app code change required. Just Link it.", "time": "20:54", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Great job Antonio! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "21:21", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao,\n\n[quote:joq2j8lc]+2 is for ( 1 decimal place and 1 minus sign )[/quote:joq2j8lc]\n\nIn dbf when we say field,\"N\" ,11,4 the total length f the field is 11 but in fact one is taken for the \".\" decimal \nso we only have 6,4 and if we want a minus we only have 5,4.\nShouldn't we use the same criteria in adordd ?\n\nBesides that if we create a field, \"N\", 10 ,2 in ACCESS in adofuncs it is considered as \"MONEY\" why?", "time": "17:11", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nMoney must be used with 2 decimals because there is a bug with Access.", "time": "18:46", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nOk thanks.\n\nHow are you trials going?", "time": "18:52", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI am waiting for last version with locates, dates and Numbers fixed.\n\nThank you.", "time": "22:10", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIm taking care of exclusive use but throwing the error doesnt do nothing the program just continues.\nThe same if oRecordSet in NIL\n\nWhat might be the problem?\n\n[code=fw:p6w24av0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//OPEN EXCLUSIVE </span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !aWAData<span style=\"color: #000000;\">&#91;</span> WA_OPENSHARED <span style=\"color: #000000;\">&#93;</span> <br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;aLockInfo<span style=\"color: #000000;\">&#91;</span> UR_LI_METHOD <span style=\"color: #000000;\">&#93;</span> := DBLM_EXCLUSIVE<br />&nbsp; &nbsp; &nbsp; &nbsp;aLockInfo<span style=\"color: #000000;\">&#91;</span> UR_LI_RESULT <span style=\"color: #000000;\">&#93;</span> := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;ADO_LOCK<span style=\"color: #000000;\">&#40;</span> nWA, aLockInfo <span style=\"color: #000000;\">&#41;</span>&nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !aLockInfo<span style=\"color: #000000;\">&#91;</span> UR_LI_RESULT <span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ERROR ADOPEN\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//IT COMES HERE BUT DO NOTHING ! WHY?</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError := ErrorNew<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">GenCode</span> := EG_OPEN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">SubCode</span> := <span style=\"color: #000000;\">1001</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">Description</span> := hb_langErrMsg<span style=\"color: #000000;\">&#40;</span> EG_OPEN <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">FileName</span> := aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">OsCode</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// TODO </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">CanDefault</span> := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NETERR<span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UR_SUPER_ERROR<span style=\"color: #000000;\">&#40;</span> nWA, oError <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE&nbsp;&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span>&nbsp; &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp;oRecordSet := &nbsp;TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oRecordSet == <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; oError := ErrorNew<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">GenCode</span> := EG_OPEN<br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">SubCode</span> := <span style=\"color: #000000;\">1001</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">Description</span> := hb_langErrMsg<span style=\"color: #000000;\">&#40;</span> EG_OPEN <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">FileName</span> := aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">OsCode</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">/* TODO */</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">CanDefault</span> := .T.<br /><br />&nbsp; &nbsp; &nbsp; UR_SUPER_ERROR<span style=\"color: #000000;\">&#40;</span> nWA, oError <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;</div>[/code:p6w24av0]", "time": "09:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat are the differences between SET ADO TABLES INDEX LIST TO and SET ADODBF TABLES INDEX LIST TO?.\n\nTryadordd.prg explanation is not clear.\n\nAlso, in last versión locking does not work.\n\nAlso, OrdSetFocus() fails too.\n\nI suggest you to try with XBROWSER FASTEDIT.\n\nWith this command, you will be able to add, modify, delete records... etc and you will be able to find bugs.\n\nThank you.", "time": "17:36", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nPlease check your version.ADOVERSION() in adordd and inform.\n\nSET ADO TABLES INDEX LIST TO these are the indexes for adordd without any dbf expressions for ado framework\nEx index expression \"date+nrcod+id\"\n\nSET ADODBF TABLES INDEX LIST TO are the indexes with dbf expressions as you use in your dbf application\nEx index expression \"dtos(date)+str(nrcod)+id\"\n\nDont forget that the ADODBF are the index expressions to be evaluated like Indexkey() or &(indexkey())and all index functions.\n\nLocking should be working although with some bugs now corrected.\nIt was not releasing all locks.\nIf you dont have any autoinc field indicated to adordd you will get problems.\n\nOrsetfocus() is already working ok since the last couple of verions. \nWe ve using it without any errors.\nCould you post the error and the index expression?\n\nI dont work with xbBrowse in this app and I dont have it.\n\nIll post a new version today working ok with:\n\nDates and numbers\nExclusive use\nLocking\n\nMissing to do:\n\nappend from\ncopy to", "time": "18:18", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSo SET ADO TABLES INDEX LIST TO and SET ADODBF TABLES INDEX LIST TO must be defined both or just one?.\n\nI will recheck with today´s new version.\n\nThank you.", "time": "18:30", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-05-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks,\n\nNow its only missing:\n\nAPPEND FROM\nCOPY TO\n\nWhat are the rdd functions for this?\n\nAlso what is the porpose of HB_DBDROP HB_DBRENAME? Its ily for sql?\n\nHow do you call it from app?", "time": "21:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI need your help.\n\nWhat are these doing?\n\n/* non WorkArea functions */\n#define UR_INIT this I know!\n#define UR_EXIT 95\n#define UR_DROP = ADO_DROP (DROP TABLE OR INDEX)\n#define UR_EXISTS = ADO_EXISTS (TABEL EXIST?)\n#define UR_RENAME 98\n#define UR_RDDINFO This I kow\n\n\nIn previous version of adordd from Fernando and Miguel they are redirected to ado_.\nI think these are rdd driver related functions so that redirection is wrong.\n\nCan you confirm?", "time": "09:34", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYou have to check how those commands are translated:\n\n[quote:5wcw9ss0]#command APPEND [FROM <(f)>] [FIELDS <fields,...>] ;\n [FOR <for>] [WHILE <while>] [NEXT <next>] ;\n [RECORD <rec>] [<rest:REST>] [ALL] ;\n [DELIMITED [WITH <*delim*>]] [CODEPAGE <cp>] => ;\n __dbDelim( .F., <(f)>, <(delim)>, { <(fields)> }, ;\n <{for}>, <{while}>, <next>, <rec>, <.rest.>, <cp> )[/quote:5wcw9ss0]\n\nNow look in Harbour source code for __dbDelim() code", "time": "09:41", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "It is finally redirected to HB_FUNC( __DBTRANS ):\n\n...\n\nerrCode = SELF_TRANS( dbTransInfo.lpaSource, &dbTransInfo );", "time": "09:45", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nHave you look for those UR_ defines in all Harbour sources ?", "time": "09:45", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks", "time": "09:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3dmqkpu5]Antonio,\n\nHave you look for those UR_ defines in all Harbour sources ?[/quote:3dmqkpu5]\n\nYes. In dbcmd.c\n\n[code=fw:3dmqkpu5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> HB_DBDROP <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;LPRDDNODE &nbsp;pRDDNode;<br />&nbsp; &nbsp;HB_USHORT &nbsp;uiRddID;<br />&nbsp; &nbsp;HB_ULONG &nbsp; ulConnection;<br />&nbsp; &nbsp;const char * szDriver;<br />&nbsp; &nbsp;PHB_ITEM &nbsp; pName;<br /><br />&nbsp; &nbsp;szDriver = hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> !szDriver <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* no VIA RDD parameter, use default */</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; szDriver = hb_rddDefaultDrv<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;ulConnection = hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;pRDDNode = hb_rddFindNode<span style=\"color: #000000;\">&#40;</span> szDriver, &uiRddID <span style=\"color: #000000;\">&#41;</span>; &nbsp;<span style=\"color: #B900B9;\">/* find the RDDNODE */</span><br />&nbsp; &nbsp;pName = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, HB_IT_STRING <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pRDDNode && pName <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; hb_retl<span style=\"color: #000000;\">&#40;</span> SELF_DROP<span style=\"color: #000000;\">&#40;</span> pRDDNode, pName, hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, HB_IT_STRING <span style=\"color: #000000;\">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulConnection <span style=\"color: #000000;\">&#41;</span> == HB_SUCCESS <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_DBCMD<span style=\"color: #000000;\">&#40;</span> EG_ARG, EDBCMD_EVAL_BADPARAMETER, <span style=\"color: #00C800;\">NULL</span>, HB_ERR_FUNCNAME <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> HB_DBEXISTS <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;LPRDDNODE &nbsp;pRDDNode;<br />&nbsp; &nbsp;HB_USHORT &nbsp;uiRddID;<br />&nbsp; &nbsp;HB_ULONG &nbsp; ulConnection;<br />&nbsp; &nbsp;const char * szDriver;<br />&nbsp; &nbsp;PHB_ITEM &nbsp; pName;<br /><br />&nbsp; &nbsp;szDriver = hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> !szDriver <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* no VIA RDD parameter, use default */</span><br />&nbsp; &nbsp; &nbsp; szDriver = hb_rddDefaultDrv<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;ulConnection = hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;pRDDNode = hb_rddFindNode<span style=\"color: #000000;\">&#40;</span> szDriver, &uiRddID <span style=\"color: #000000;\">&#41;</span>; &nbsp;<span style=\"color: #B900B9;\">/* find the RDD */</span><br />&nbsp; &nbsp;pName = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, HB_IT_STRING <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pRDDNode && pName <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; hb_retl<span style=\"color: #000000;\">&#40;</span> SELF_EXISTS<span style=\"color: #000000;\">&#40;</span> pRDDNode, pName, hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, HB_IT_STRING <span style=\"color: #000000;\">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulConnection <span style=\"color: #000000;\">&#41;</span> == HB_SUCCESS <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_DBCMD<span style=\"color: #000000;\">&#40;</span> EG_ARG, EDBCMD_EVAL_BADPARAMETER, <span style=\"color: #00C800;\">NULL</span>, HB_ERR_FUNCNAME <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:3dmqkpu5]\n\nIt seems to me that this has to do with rdddriver and not table.\n\nI think we dont need this. Right?", "time": "10:05", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIt looks like a cleaning on exit if needed. \n\nIf you don't need it to clean anything, then you don't need it.", "time": "10:20", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nIs not working. I get this error:\n\n Error description: Error BASE/1081 Argument error: +\n Args:\n [ 1] = U \n [ 2] = C .DBF\n\nStack Calls\n===========\n Called from: test.prg => ADO_OPENSHARED( 2670 )\n\n_ > DBUSEAREA(.T.,aLockCtrl[2],aLockCtrl[1]+\".DBF\",\"TLOCKS\",.T.)\n\n Called from: test.prg => ADO_OPEN( 241 )\n Called from: => DBUSEAREA( 0 )\n Called from: test.prg => MAIN( 59 )\n\n\nIs anyone testing this?. It seems that no...", "time": "11:53", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nPlease post here test.prg", "time": "11:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI'm working \"copy to\" but guessing what to do because there isn't any documentation.\n\nPlease inform what is in aFieldsStru I see some code blocks but I have no idea what it is.\n\n __dbTrans( nDstArea, aFieldsStru, bFor, bWhile, nNext, nRecord, lRest )\n\nare these parameters correcto for UR_TRANS?\n\nAlso parameters for UR_TRANSREC and what is for.", "time": "12:05", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Sure,\n\n#include \"fivewin.ch\"\n\n#include \"adordd.prg\"\n\n\n\nREQUEST ADORDD\n\nfunction Main()\n\n RDDSETDEFAULT( \"ADORDD\" )\n\n SET ADODBF TABLES INDEX LIST TO {{ \"TEST\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} }}\n\n SET ADO TABLES INDEX LIST TO {{ \"TEST\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} }}\n\n\n SET ADO DEFAULT RECNO FIELD TO \"HBRECNO\"\n\n \tSET AUTOPEN ON //might be OFF if you wish\n\tSET AUTORDER TO 1 // first index opened can be other\n\n\n SET ADO DEFAULT DATABASE TO \"TEST2.mdb\" ENGINE TO \"ACCESS\" USER TO \"\" PASSWORD TO \"\"\n\n SET ADO LOCK CONTROL SHAREPATH TO \"C:\\\" RDD TO \"DBFCDX\"\n\n\n\n IF !FILE( \"test2.mdb\" )\n\n DbCreate( \"test2.mdb;table1\", { { \"FIRST\", \"C\", 30, 0 },;\n { \"LAST\", \"C\", 30, 0 },;\n { \"AGE\", \"N\", 8, 0 } }, \"ADORDD\" )\n ENDIF\n\n\n\n USE TABLE1 NEW ALIAS \"TEST2\"\n TEST2->( OrdSetFocus(\"TEST2\") )\n\n msginfo(ordsetfocus())\n\n DbGoTop()\n\n XBROWSER FASTEDIT\n\n\n DbCloseAll()\n\n\n\n\nreturn nil", "time": "12:13", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nPlease try:\n\nSET ADO LOCK CONTROL SHAREPATH TO \"C:\" RDD TO \"DBFCDX\" //cant use final \"\\\"\n\nSET ADO TABLES INDEX LIST and SET ADODBF TABLES INDEX LIST TO \nthe name is of the table not the alias.\n\nAnd add HB_RECNO when creating the tables. This field its not auto creates by ado.\n\nPlease let me know result.\n\nThanks", "time": "12:42", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI did those changes, and I still get:\n\n Time from start: 0 hours 0 mins 0 secs \n Error occurred at: 05/05/15, 13:53:30\n Error description: Error DBCMD/1015 Argument error: DBUSEAREA\n\nStack Calls\n===========\n Called from: => DBUSEAREA( 0 )\n Called from: test.prg => ADO_OPENSHARED( 2670 )\n\n-> DBUSEAREA(.T.,aLockCtrl[2],aLockCtrl[1]+\".DBF\",\"TLOCKS\",.T.)\n\n\nBy the way, in order to have ADORDD more clear, SET ADO LOCK CONTROL SHAREPATH should be by default HBDIRBASE(), without needing to specify it. The same for SET ADO DEFAULT RECNO FIELD.\n\nThank you.", "time": "12:56", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nAre you linking dbfcdx rdd ?\n\nWhat version are you using see adoversion please.\n\nWhats this HBDIRBASE ? Im using xHarbour.", "time": "13:19", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nI am using \"AdoRdd Version 1.040515/1\"\n\nI linked DBFCDX and now I get another error:\n\n Error description: Error ADORDD/1022 Lock required: TABLE1\n\nStack Calls\n===========\n Called from: => UR_SUPER_ERROR( 0 )\n Called from: test.prg => ADO_PUTVALUE( 1276 )\n Called from: test.prg => MAIN( 72 )\n\nAnd also:\n\n Error description: Error ADORDD/1022 Lock required: TABLE1\n\nStack Calls\n===========\n Called from: => UR_SUPER_ERROR( 0 )\n Called from: test.prg => ADO_DELETE( 1068 )\n Called from: => DBDELETE( 0 )\n Called from: .\\source\\classes\\XBROWSE.PRG => (b)TXBROWSE_SETRDD( 4153 )\n Called from: .\\source\\classes\\XBROWSE.PRG => (b)TXBROWSE( 632 )\n Called from: .\\source\\classes\\XBROWSE.PRG => TXBROWSE:DELETE( 0 )\n Called from: .\\source\\function\\XBROWSER.PRG => (b)XBROWSE( 137 )\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:CLICK( 522 )\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 752 )\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1723 )\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 1601 )\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH( 3345 )\n Called from: => DIALOGBOXINDIRECT( 0 )\n Called from: .\\source\\classes\\DIALOG.PRG => TDIALOG:ACTIVATE( 286 )\n Called from: .\\source\\function\\XBROWSER.PRG => XBROWSE( 220 )\n Called from: test.prg => MAIN( 68 )\n\n\n\nhb_dirbase() is \n\n[code=fw:2jt7viyt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">function</span> hb_DIRBASE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> cFilePath<span style=\"color: #000000;\">&#40;</span> GetModuleFileName<span style=\"color: #000000;\">&#40;</span> GetInstance<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp;</div>[/code:2jt7viyt]", "time": "13:31", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nYou must have HB_RECNO or other autoinc type field in your tables and indicate its name to adordd .", "time": "14:15", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "I do have it:\n\nSET ADO DEFAULT RECNO FIELD TO \"ID\"", "time": "14:22", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nPlease post prg.", "time": "14:26", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Sure,\n\nREQUEST ADORDD, DBFCDX\n\nfunction Main()\n\n local aArray := {}\n\n\n RDDSETDEFAULT( \"ADORDD\" )\n\n SET ADODBF TABLES INDEX LIST TO {{ \"TEST2\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} }}\n\n SET ADO TABLES INDEX LIST TO {{ \"TEST2\", {\"TEST1\", \"FIRST\"} ,;\n {\"TEST2\", \"LAST\"} ,;\n {\"TEST3\", \"AGE\"} }}\n\n\n\n SET ADO DEFAULT RECNO FIELD TO \"ID\"\n\n \tSET AUTOPEN ON //might be OFF if you wish\n\tSET AUTORDER TO 1 // first index opened can be other\n\n\n SET ADO DEFAULT DATABASE TO \"TEST2.mdb\" ENGINE TO \"ACCESS\" USER TO \"\" PASSWORD TO \"\"\n\n SET ADO LOCK CONTROL SHAREPATH TO \"C:\" RDD TO \"DBFCDX\"\n\n\n\n IF !FILE( \"test2.mdb\" )\n\n DbCreate( \"test2.mdb;table1\", { { \"FIRST\", \"C\", 30, 0 },;\n { \"LAST\", \"C\", 30, 0 },;\n { \"AGE\", \"N\", 8, 0 } }, \"ADORDD\" )\n ENDIF\n\n\n\n USE TABLE1 NEW ALIAS \"TEST2\"\n\n\n TEST2->( OrdSetFocus(\"TEST2\") )\n\n msginfo(ordsetfocus())\n\n\n\n\n XBROWSER FASTEDIT\n\n DbCloseAll()\n\n\n\n\nreturn nil", "time": "14:56", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nYou must do it like this:\n\nPlease note table1 instead of test2 in SET ADO... TABLES as the indexes are related to tables not to DBs and ID field in dbcreate.\n\nLike this should work ok.\n\n[code=fw:1rfzumft]<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;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><br />SET ADO TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</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 />SET AUTOPEN <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #B900B9;\">//might be OFF if you wish</span><br />SET AUTORDER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// 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> CPATH+<span style=\"color: #ff0000;\">\"TEST2.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 />SET ADO LOCK CONTROL SHAREPATH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"C:\"</span> RDD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br /><br /><br /><span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"test2.mdb\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />DbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"test2.mdb;table1\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</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;\">&#125;</span>,;<br /><span style=\"color: #000000;\">&#123;</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;\">&#125;</span>,;<br /><span style=\"color: #000000;\">&#123;</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;\">&#125;</span> <br /><span style=\"color: #000000;\">&#123;</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;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"ADORDD\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp;</div>[/code:1rfzumft]", "time": "15:21", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThank you but it does not:\n\n[code=fw:zra8gk3o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />REQUEST ADORDD, DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;<span style=\"color: #00C800;\">local</span> cPath := hb_dirbase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; RddRegister<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADORDD\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; RddSetDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADORDD\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />SET ADODBF TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><br />SET ADO TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</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 />SET AUTOPEN <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #B900B9;\">//might be OFF if you wish</span><br />SET AUTORDER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// 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> CPATH+<span style=\"color: #ff0000;\">\"TEST2.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 />SET ADO LOCK CONTROL SHAREPATH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"C:\"</span> RDD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br /><br /><br /><span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"test2.mdb\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />DbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"test2.mdb;table1\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</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;\">&#125;</span>,;<br /><span style=\"color: #000000;\">&#123;</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;\">&#125;</span>,;<br /><span style=\"color: #000000;\">&#123;</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;\">&#125;</span>,;<br /><span style=\"color: #000000;\">&#123;</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;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"ADORDD\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;USE table1 <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"TEST2\"</span> <span style=\"color: #00C800;\">NEW</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:zra8gk3o]\n\n\n\n Time from start: 0 hours 0 mins 0 secs \n Error occurred at: 05/05/15, 16:27:09\n Error description: (DOS Error -2147352567) WINOLE/1007 The database engine Microsoft Jet can not find the input table or query 'TABLE1'. Make sure it exists and that its name is spelled correctly. (0x80040E37): Microsoft JET Database Engine\n\n Args:\n [ 1] = C SELECT * FROM TABLE1\n [ 2] = O ADODB.Connection\n\nStack Calls\n===========\n Called from: => TOLEAUTO:OPEN( 0 )\n Called from: elvira.prg => ADO_OPEN( 295 )\n Called from: => DBUSEAREA( 0 )\n Called from: elvira.prg => MAIN( 58 )\n\nThanks <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->.", "time": "15:28", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nIts a bug ! \n\nTake out test2.mdb; from dbcreate.\n\nDbCreate( \"table1\", { { \"FIRST\", \"C\", 30, 0 },;\n{ \"LAST\", \"C\", 30, 0 },;\n{ \"AGE\", \"N\", 8, 0 },;\n{ \"ID\" ,\"+\",10, 0} }, \"ADORDD\" )\n\nIm correcting it but like this its working here.\n\nLet me know if it worked.\n\nThanks.", "time": "17:50", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nIf you want keep things the same way please replace in adordd in function ado_create\n\n IF( ALLTRIM( cDataBase ) == \"\" ,cDataBase:= t_cDataSource, cDataBase ) \n IF( ALLTRIM( cTable ) == \"\" , cTable := aOpenInfo[ UR_OI_NAME ] ,cTable)\n IF( ALLTRIM( cDbEngine ) == \"\" ,cDbEngine:= t_cEngine, cDbEngine )\n IF( ALLTRIM( cServer ) == \"\" , cServer:= t_cServer, cServer )\n IF( ALLTRIM( cUserName ) == \"\" , cUserName:= t_cUserName, cUserName )\n IF( ALLTRIM( cPassword ) == \"\" , cPassword:= t_cPassword, cPassword )\n\nPlease note difference = to ==\n\nThat s it.", "time": "18:00", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nNow I get:\n\n Error description: Error ADORDD/1022 Lock required: TABLE1\n\nStack Calls\n===========\n Called from: => UR_SUPER_ERROR( 0 )\n Called from: elvira.prg => ADO_PUTVALUE( 1276 )\n Called from: elvira.prg => MAIN( 76 )\n\nI also tried with the EXCLUSIVE at USE: <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\nUSE table1 ALIAS \"TEST2\" NEW EXCLUSIVE\n\nAlso, how do I check if the table \"table1\" exists in the Access database?.\n\nThanks <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->", "time": "18:02", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\n ADOVERSION() Returns adordd version\n hb_adoRddGetConnection( nWorkArea ) Returns the connection for the workarea\n hb_adoRddGetRecordSet( nWorkArea ) Returns the recordset for the nWorkArea \n hb_adoRddGetTableName( nWorkArea ) Returns tabe name for the nWorkArea \n hb_adoRddExistsTable( oCon,cTable, cIndex ) Returns .t. if table or table and index exist on the DB\n hb_adoRddDrop( oCon, cTable, cIndex, DBEngine ) Drops (delete) table or index in the DB\n hb_GetAdoConnection() Returns ado default connection\n\nExclusive its only working if you try to open the table in another instance of app.\nUpdating records its still not verifying it if table its exclusive and since it does not find a lock record throws error.\n\nAll this only working next post tomorrow.", "time": "18:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI can´t add, modify or delete records.\n\nI get that errors.\n\nI open the table like this:\n\n[code=fw:8lf6z6gz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />USE table1 <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"TEST2\"</span> <span style=\"color: #00C800;\">NEW</span> <br />&nbsp;</div>[/code:8lf6z6gz]\n\nAnd:\n\n[code=fw:8lf6z6gz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />USE table1 <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"TEST2\"</span> <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br />&nbsp;</div>[/code:8lf6z6gz]\n\n\nBoth cases I get errors.\n\nSorry, but the ADORDD is not ready yet. <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "18:20", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nHere tryadordd and variants are working perfectly.\n\nI can add modify and delete records with browse() or with append and replace .\n\nI dont work with xBrowse\n\nDid you tried with browse()\nCan you navigate well with xbrowse ?\n\nCan you send to my email your trial prg?", "time": "19:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYes, I tested with Browse() and it fails.\n\nHere is my full sample:\n\n[code=fw:2xaft9xu]<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.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"adordd.prg\"</span><br /><br /><br /><br />REQUEST ADORDD, DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;<span style=\"color: #00C800;\">local</span> cPath := hb_dirbase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; RddRegister<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADORDD\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; RddSetDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADORDD\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; SET ADODBF TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; SET ADO TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"TABLE1\"</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST1\"</span>, <span style=\"color: #ff0000;\">\"FIRST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST2\"</span>, <span style=\"color: #ff0000;\">\"LAST\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TEST3\"</span>, <span style=\"color: #ff0000;\">\"AGE\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><br /><br /><br />&nbsp; SET ADO <span style=\"color: #00C800;\">DEFAULT</span> RECNO FIELD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"ID\"</span><br /><br />&nbsp; SET AUTOPEN <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #B900B9;\">//might be OFF if you wish</span><br />&nbsp; SET AUTORDER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// first index opened can be other</span><br /><br /><br />&nbsp; SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DATABASE <span style=\"color: #0000ff;\">TO</span> CPATH+<span style=\"color: #ff0000;\">\"TEST2.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 />&nbsp; SET ADO LOCK CONTROL SHAREPATH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"C:\"</span> RDD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//IF !FILE( \"test2.mdb\" )</span><br /><span style=\"color: #B900B9;\">/*<br />DbCreate( \"table1\", { { \"FIRST\", \"C\", 30, 0 },;<br />{ \"LAST\", \"C\", 30, 0 },;<br />{ \"AGE\", \"N\", 8, 0 },;<br />{ \"ID\" ,\"+\",10, 0} }, \"ADORDD\" )<br />*/</span><br /><span style=\"color: #B900B9;\">//ENDIF</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;USE table1 <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"TEST2\"</span> <span style=\"color: #00C800;\">NEW</span> <br />BROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; TEST2-><span style=\"color: #000000;\">&#40;</span> &nbsp;OrdSetFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TEST2\"</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>ordsetfocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br /><br />&nbsp; &nbsp;XBROWSER FASTEDIT<br /><br /><br />&nbsp; &nbsp;APPEND BLANK<br />&nbsp; &nbsp;test2->First &nbsp; := <span style=\"color: #ff0000;\">\"HOMER si no Homer\"</span><br />&nbsp; &nbsp;test2->Last &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"Simpson\"</span><br />&nbsp; &nbsp;test2->Age &nbsp; &nbsp; := <span style=\"color: #000000;\">45</span><br /><br />&nbsp; &nbsp;APPEND BLANK<br />&nbsp; &nbsp;test2->First &nbsp; := cValToChar<span style=\"color: #000000;\">&#40;</span> nRandom<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" aaa Lara\"</span><br />&nbsp; &nbsp;test2->Last &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"Croft si no\"</span><br />&nbsp; &nbsp;test2->Age &nbsp; &nbsp; := <span style=\"color: #000000;\">32</span><br /><br /><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbCloseAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br />&nbsp;</div>[/code:2xaft9xu]", "time": "20:05", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease confirm then meaning of each method \n\naLockInfo[ UR_LI_METHOD ]\n\nDBLM_EXCLUSIVE \nDBLM_MULTIPLE \nDBLM_FILE", "time": "21:07", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nHave you checked my sample?.\n\nThank you.", "time": "15:53", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Elvira,\n\nYes and it runs ok here.\n\nI ve found out that the problem is with cursorlocation because with ACCESS aduseclient you can not :update()\nso I've change it to adUseServer but with adOpenKeyset because with adOpenDynamic ACCESS also does not work correctly.\nIn my tests with MYSql everything its ok.\n\nAlso since locks are enforced using Browse() you need to pass the deleteblock otherwise adorddd will raise \"lock required\" error as Browse() deletes without call dbrlock().\n\nExclusive use is still under development because it wasnt work correctly.\nLocks have been readjusted and now seem to work ok.\n\nWhen creating views please remember that you need to have also a autoinc field to be used as recno so you can include it in the \"as select\" statement.\n\nPlease send me your email and Ill send you now last adordd.\n\nDid you managed to navigate correctly with xbrowse?", "time": "16:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao, Lucas,\n\nHow can I use adUseServer cursor with MySql?\n\nI can only work with adUseClient.", "time": "18:09", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "New version adordd.prg posted <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nIts very imortant that you indicate in adordd.prg in the several places with the cursorlocation the type of cursor you need to your DB.\nNot choosing the right cursor the browses become irregular.\nPlease remember that all browse positioning is based on absoluteposition thus a cursor that can not support it doesnt work.\nAlso you need a cursor that supports update() and requery().\nThe cursors defined in adordd support:\n\nACCESS\nMYSQL\nORACLE\n\nChanges:\nLocks now work as it should.\nExclusive use in progress not validated\n\nUsing Browse() you must pass delete block because it does not lock the record and adorddd raises a lock required error.\nAlso when you change the index key value the browse() does not re-position immediately the grid. Click right or left arrows.\n\nadordd has been working ok with :\n\nACCESS\nMYSQL\nORACLE\n\nboth in internal network and internet and its ok.\nInternet a little slow but not crawling with tables 30.000 recs.\nYou must find which are the best parameters for your case and adjust it in ADO_OPEN\n\nLook for:\n[code=fw:1sp69mki]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; <span style=\"color: #B900B9;\">//PROPERIES AFFECTING PERFORMANCE TRY</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oRecordSet:MaxRecords := 60</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oRecordSet:CacheSize := 50 //records increase performance set zero returns error set great server parameters max open rows error</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oRecordset:PageSize = 10</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oRecordSet:MaxRecords := 15</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//oRecordset:Properties(\"Maximum Open Rows\") := 110 &nbsp;//MIN TWICE THE SIZE OF CACHESIZE</span><br />&nbsp;</div>[/code:1sp69mki]\n\nPlease post your comments and findings.", "time": "20:37", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nHow can I set value for \"Maximum Open Rows\" with MySql?\n\nIs it possible with this property that the server only returns blocks of rows as they are requested?\n\nCan this increase performance?\n\nThanks", "time": "08:48", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao, Lucas,\n\nWe found a performance problem with adordd trials.\n\nThe issue is that ADO_RECCOUNT (reccount() or lastrec()) sends a sql SELECT MAX(FIELD USED AS RECNO)\nThis is delaying quite a bit all browses mainly on WAN because gets called many times.\nTaking this out the browses are quite fast.\n\nIs there a way to question the DB if table has been updated and only then adordd sends the sql SELECT?\nOr may be a faster way to question the DB ?\n\nIm trying it with MySql over LAN and WAN and the difference in browses performance its huge.", "time": "19:47", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI have not been able to test last version due lack of time. Does it work with Access now?. Which RDBMS have you tested?.\n\nRegarding configuration optimization settings, please review adofuncs.prg Fw_OpenAdoConnection and FW_OpenRecordSet. They are high optimized and work very well. Also, for a WAN connection, the key is to have a connection with low ping, such as cable or fiber. Good DSLs work fine too.\n\nAbout xBrowse speed, yes, it calls very often reccount(). Mr. Nages could provide more insight to it.\n\nHave you checked out XBROWSER FASTEDIT¿-", "time": "20:01", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, congratulations for your work!!!\nI test to compile the adordd.prg with xHarbour and become many errors:\n[code=fw:26x2sgxj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">MAKE Version <span style=\"color: #000000;\">5.2</span>  Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</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:\\<span style=\"color: #0000ff;\">term</span><br />ne;c:\\xharbour\\include -n -m -w -es2 -gc3  -dtestfassung -d__GUN__ C:\\adordd\\ad<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;\">&#40;</span>SimpLex<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span>Build <span style=\"color: #000000;\">20140725</span><span style=\"color: #000000;\">&#41;</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;\">&#40;</span><span style=\"color: #000000;\">366</span><span style=\"color: #000000;\">&#41;</span> Error E0022  Invalid lvalue: <span style=\"color: #ff0000;\">':'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">524</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'T_CTABLENAME'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">627</span><span style=\"color: #000000;\">&#41;</span> Warning W0002  Ambiguous reference, assuming memvar:<br /><span style=\"color: #000000;\">AWDATA</span><span style=\"color: #ff0000;\">'<br />C:<span style=\"color: #000000;\">\\a</span>dordd<span style=\"color: #000000;\">\\a</span>dordd.prg(628) Warning W0002  Ambiguous reference, assuming memvar:<br />AWDATA'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">922</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'NTOTSKIP'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1023</span><span style=\"color: #000000;\">&#41;</span> Warning W0002  Ambiguous reference, assuming memvar:<br /><span style=\"color: #ff0000;\">'AWADATA'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1122</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1123</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1124</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1125</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1126</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1127</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1128</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1129</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OERROR'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1643</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'NMAX'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1676</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1677</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1678</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1774</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1775</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1776</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1788</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1789</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1790</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1820</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1821</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1822</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'N'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3225</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'CKEYBOTOM'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3929</span><span style=\"color: #000000;\">&#41;</span> Warning W0002  Ambiguous reference, assuming memvar:<br /><span style=\"color: #ff0000;\">'AWADATA'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3958</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'OCN'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3963</span><span style=\"color: #000000;\">&#41;</span> Warning W0002  Ambiguous reference, assuming memvar:<br /><span style=\"color: #ff0000;\">'AWADATA'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4315</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'X'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4316</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'X'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4317</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'X'</span><br />C:\\adordd\\adordd.prg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4733</span><span style=\"color: #000000;\">&#41;</span> Warning W0001  Ambiguous reference: <span style=\"color: #ff0000;\">'CODLOCK'</span></div>[/code:26x2sgxj]\nAlso the \"hbusrrdd.ch\" are not present at xHarbour (only usrrdd.ch)\n\nWhat to do?", "time": "20:47", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-05-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"lucasdebeltran\":ju475lui]Antonio,\n\nI have not been able to test last version due lack of time. Does it work with Access now?. Which RDBMS have you tested?.\n\nRegarding configuration optimization settings, please review adofuncs.prg Fw_OpenAdoConnection and FW_OpenRecordSet. They are high optimized and work very well. Also, for a WAN connection, the key is to have a connection with low ping, such as cable or fiber. Good DSLs work fine too.\n\nAbout xBrowse speed, yes, it calls very often reccount(). Mr. Nages could provide more insight to it.\n\nHave you checked out XBROWSER FASTEDIT¿-[/quote:ju475lui]\n\nIt works with ACCESS the problem was only with the chosen cursor.\nNow I'm only working with MYSql and its perfect. It works also with Oracle.\n\nPerformance without ADORECCOUNT its excellent. \nIm trying to find a solution for it.\n\nConcerning Xbrowse I dont work with it but there is any reason not to work ok.\nPlease let me know what is the problem with it ?\n\nIn adordd its only missing:\n\nUSE EXCLUSIVE\nAPPEND FROM\nCOPY TO", "time": "08:40", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"byte-one\":9do002tf]Antonio, congratulations for your work!!!\nI test to compile the adordd.prg with xHarbour and become many errors:\n\nAlso the \"hbusrrdd.ch\" are not present at xHarbour (only usrrdd.ch)\n\nWhat to do?[/quote:9do002tf]\n\nWe are still clearing code. \nI'll post today a new version with these corrections and hbussrdd.ch.\n\nThanks for your help.", "time": "09:28", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nLatest version from 06 seems much better.\n\nI found a bug at dbcreate, you are not distinguishing Database and Table, so dbcreate fails.\n\nAlso, command SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO <array>have been changed?. I can´t see the difference.\n\nAlso, SET ADO LOCK CONTROL SHAREPATH TO should take by default hb_dirbase(), so It won´t be called unless the programmer needs to change paths.\n\nIn my opinion, the less settings the more easy for new programmers to test it.\n\nThank you.", "time": "15:26", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "New version adordd.prg <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nPlease check readme.", "time": "16:13", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"lucasdebeltran\":1683noph]Antonio,\n\nLatest version from 06 seems much better.\n\nI found a bug at dbcreate, you are not distinguishing Database and Table, so dbcreate fails.\n\nAlso, command SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO <array>have been changed?. I can´t see the difference.\n\nAlso, SET ADO LOCK CONTROL SHAREPATH TO should take by default hb_dirbase(), so It won´t be called unless the programmer needs to change paths.\n\nIn my opinion, the less settings the more easy for new programmers to test it.\n\nThank you.[/quote:1683noph]\n\nLucas,\n\nI just posted last version.\nI think Dbcreate working now. Please check it.\nSET ADO... and SET ADDBF didnt changed.\nSET ADO LOCK CONTROL SHAREPATH TO Ill change it next post\n\nDoes it work ok with xbrowse?\n\nIm only working now with MySql.", "time": "16:21", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nadordd works mainly with cursor adUseClient.\n\nThis brings a problem because new and deleted records by others are not seen.\n\nDeleted records its not so difficult because in editions or transactions when we lock we do resync and if there is an error we requey and locks fail so edition or transaction doesn't not proceed.\n\nBut with new records...\nWe are studying a way to trigger that and requery again the recordset when needed.\n\nAs ADO expertise do you have any solution or idea for this?\n\nThanks for your precious help.", "time": "16:31", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour