messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2015-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "In tryadordd.prg change\n\n[code=fw:31kkkx9m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">&#40;</span>   <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\T</span>ESTADORDD.mdb\"</span>   <span style=\"color: #000000;\">&#41;</span></div>[/code:31kkkx9m]in\n[code=fw:31kkkx9m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">IF</span> !hb_adoRddExistsTable<span style=\"color: #000000;\">&#40;</span> ,<span style=\"color: #ff0000;\">\"table1\"</span><span style=\"color: #000000;\">&#41;</span></div>[/code:31kkkx9m]", "time": "17:45", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nDone.\n\nThanks", "time": "18:04", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-21", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd ver 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nminor bugs corrections\nbetter detection of refreshing new records added by others\nimprovement speed in replaces", "time": "22:57", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nLeft overs! Done!\n\nIndexes without UDFs are not really created they are transform into ado_sort.\nThis is done when calling set order to, ordsetfocus just like in clipper resuming when the order becomes active.\n\nIndexes with UDFs are created either with index on... or created with ordsetfocus if the index is in SET ADODBF INDEX...\nThese indexes are really an array of bookmarks ordered by eval key expression thats why they should be avoided as much as possible.\nThese arrays of bookmarks are auto maintained by adordd and as key expression is altered or added the same way as clipper.\n\nResuming:\nIndexes without UDFs are extremely fast to build as :sort its extremely fast. Here tests with MySql tables > 800.000 recs its immediate.\n\nIndexes with UDFS without a while clause or not with a SCOPE are much slower as all records must be read, added to the array and sort after the array. This only happens once during the application life time. \nHowever its not too slow its still workable.\n\nIndexes with UDFS with a while clause depends of the size of the range.\n\nI hope Ive made it clear.", "time": "15:24", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio in line 927\n[code=fw:3d9x7dmz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">nSecs := Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:3d9x7dmz]\nshould be removed!\n\nAn other technical question:\nIn which moment the indexes are build??\n\nThanks", "time": "14:44", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, and for clearness:\nIn which cases UDF-Indexes are required and can i use in normal indexes (with SORT) all Harbour functions?", "time": "22:00", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIn Harbour indexes we have 2 kind of functions.\n\n1st the ones we are obliged to use because we must have only one data type in the index expression. The big part!\nThese are conversion data type functions that is not needed in ADO :sort thus adordd extracts the fields and is straight forward. You dont need to worry about these and do not need to be included in SET UDFS. ( EX. DTOS, DTOC, STR, VAL, ETC) \n\n2nd the ones that alter the index expression value for ex SUBSTR or IF( fieldvalue, \"1\", \"2\" ) var evaluation & true User Defined Functions.\nThese we have to declare as UDFS because they need to be evaluated by Harbour and they can not be evaluated by Sort .\n\nIs it clear for you?", "time": "22:19", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, now is clear! Thanks.\n\nNow i have converted with your function some DBFs to MSSQL. All is ok, but if in a character- or Memofield is a single Quote, a error occurs! This quotes should be converted in another character!?", "time": "13:10", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nI decided not to translate these strings at adordd because then problems come with passwords, encrypted strings etc. Thus the user has to decide himself how he pretends to save it.\nIf anyone has a better idea we can try to include it in adordd.\n\nYou can try \n\nSTRTRAN( cStr, \"'\" , \"''\" )\n\nor\n\nSTRTRAN( cStr, \"'\",\"\\'\") //Im not sure about the escape char\n\nDid it work?", "time": "13:24", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, where in hb_AdoUpload() (or in other function) are this conversations to do? As parameter Y/N?", "time": "13:48", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nSorry I misunderstood.\n\nCan you post the error?", "time": "14:14", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nI see it now. \nThe app I m using does not accept single quotes in fields because of some xml extraction.\n\nTry with this in ado_putvalue\n \n xValue := '\"'+xValue+'\"'\n\nInstead of xValue := \"'\"+xValue+\"'\"", "time": "15:27", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, this is not functioning (MSSQL 2014). I use [code=fw:2qfe1sgw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">xValue :=<span style=\"color: #ff0000;\">\"'\"</span>+ STRTRAN<span style=\"color: #000000;\">&#40;</span> xValue, <span style=\"color: #ff0000;\">\"'\"</span>, <span style=\"color: #ff0000;\">\"''\"</span> <span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"'\"</span></div>[/code:2qfe1sgw]\nI do not use crypted strings.", "time": "13:19", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIll post a new build maybe today that solves this problem for all engines.", "time": "13:30", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-25", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd version 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nChanges:\n\nShould compile now with Harbour and without FiveWin but I didnt test it.\nField replaces with special chars (single quotes, apostrophes, etc ) should work now.\nDbEval improve speed.\nUpdate 01_README.PDF with adordd error codes", "time": "19:05", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd version 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nSmall bug corrections:\n\nCorrected bug when updating a indexkey with UDF index.\nCorrected bug when adding new record with UDF index and UDF index is empty.\nCorrected bug when ZAP was given an error after when refreshing recordset.", "time": "12:50", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd ver 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nChanges:\n\nFinally it seems that we managed to increase dramatically the opening times for huge tables and much better memory usage.\n\n1) New SET ADO PRE OPEN THRESHOLD TO nRecords\n\nThis set will define how adordd will open the tables during app run time.\n\nAll the tables with records equal or greater than nRecords and without any WHERE opening clause\nwill be all open during app initialization.\n\nYou will wait a little for the app to start but after all table opening it will be very fast.\nThis will consume much memory at start but less during app run time.\n\nYou should balance yourself the value of nRecords accordingly to the time you are willing to wait to open\na table and your memory availability.\nIts very easy opening a couple of tables > 500.000 recs to use some gigas of memory.\n\nEven without this SET adordd will only take some time opening a table if its not open already \notherwise it will be very fast.\n\nadordd its now extremely fast and can be truly compared to any other dbfcdx kind of rdd.\n\nIve made some trials and it seems to be running ok. Please check it yourselves and revert.\n\n2) Code cleaning\n\n3) Compile improvement with Harbour / xHarbour with or without FiveWin.\n\n4) 01_readme.pdf new SET information.", "time": "20:51", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThank you for this adordd version and adordd in general.\n\nI tried to compile/link this newest adordd.\n\nI got the following error:\n\nError: Unresolved external '_HB_FUN_HB_PS' referenced from C:\\PIETER\\XHARBOUR123\n\\LIB\\ADORDD.LIB|adordd\n\nPieter", "time": "09:34", "topic": "ADO RDD xHarbour", "username": "pieter" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I have not had time to try your great work\nI hope I can use it from now\nThank you for your effort", "time": "09:37", "topic": "ADO RDD xHarbour", "username": "cnavarro" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Pieter,\n\nYou must compile and link adordd.prg not adordd.lib.\n\nThere is a bug in INDEX ON temporary files without any UDFs or index condition otherwise its ok. \nIll post a new corrected build asap.", "time": "09:48", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nThanks, Im looking forward to your comments.", "time": "09:51", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, oké, thanks.\n\nSame error:\nError: Unresolved external '_HB_FUN_HB_PS' referenced from C:\\PIETER\\UB404-8SEPT\nEMBER2015-V4\\UB\\ADORDD.OBJ\n\nAm I doing something wrong with compiling/linking (or is it because of the bug)?\n\nPieter", "time": "10:11", "topic": "ADO RDD xHarbour", "username": "pieter" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Pieter,\n\nAre you using Harbour or xHarbour?\n\nTry comment #include \"hbcompat.ch\"", "time": "10:20", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, I use Xharbour. I comment #include \"hbcompat.ch\" like you suggested. it is solved now. Thanks.", "time": "10:42", "topic": "ADO RDD xHarbour", "username": "pieter" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Pieter,\n\nStrange I use xHarbour and it compiles ok with that line not commented.\n\nCould you try this to see if it works?\n\n#ifndef __XHARBOUR__\n#include \"hbcompat.ch\" \n#endif", "time": "10:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n#ifndef __XHARBOUR__\n#include \"hbcompat.ch\"\n#endif\n\nWith above code my program compiles and link.\n\nPieter", "time": "11:02", "topic": "ADO RDD xHarbour", "username": "pieter" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Pieter,\n\nThanks", "time": "11:03", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd ver 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nChanges:\n\n1) Bug creating indexes was searching index name with = instead of == returning sometimes wrong name and expression.\nThis has been disrupted when coding UDFs in indexes.\n\n2) New #ifef to compile with Harbour and xHarbour", "time": "11:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, cMark must defined as LOCAL! \n[code=fw:2ih5x928]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADOTEMPTABLE<span style=\"color: #000000;\">&#40;</span> DbEngine, oCon, cTable<span style=\"color: #000000;\">&#41;</span><br /> <span style=\"color: #B900B9;\">//LOCAL cMark := \"\"</span><br />  <span style=\"color: #00C800;\">TRY</span><br />    oCon:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DROP TABLE \"</span> + cTable <span style=\"color: #000000;\">&#41;</span><br />  CATCH<br />    <span style=\"color: #B900B9;\">//DO NOTHING IF DOE NOT EXIST</span><br />  END<br />  cMark := <span style=\"color: #ff0000;\">\"TABLE \"</span><br /> ....<br /> </div>[/code:2ih5x928]\n\nA suggestion:\nIn ADOSHOWERROR() should also the database an the actual table displayed!", "time": "14:35", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI have a big concern with the new update.\n\nI program exensively using objects. In these objects I may open the same DBF in many methods--often just to look something up, then close it. I do this mainly so I don't have to worry about reusing an already open copy of a database. If I did use already open DBFs, then I would have to save the entire state of the database (recno(), index order, filter, relations, scope, etc.) at the start of the method and restore it at the end of each method. Often I open several DBFs in the same method.\n\nSo it seems that my code will not be compatible with the current ADORDD. If I understand it correctly, all databases are opened at the start, and the same copies of each must be used during the entire program. Is this true?\n\nIf so, then I will have to do very extensive recoding to use the ADORDD. Others may have the same issue.\n\nBest Regards,\nJames", "time": "15:12", "topic": "ADO RDD xHarbour", "username": "James Bott" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nThanks.\nDone!\nBut in fact its not used.", "time": "15:25", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nThe fact of the tables defined in SET ADO THRESHOLD has nothing to do with the apps.\nIt internally used by adordd but for the user everything is the same.\nYou can do whatever you want in your app just like with any other rdd.\n\nWhen I say opening the tables means to build the recordets and this takes some time.\nSo its better to wait a little in app initialization than to wait every time we open and close a table.\nBesides that the memory usage is much more effective because adordd its not building 3 recordsets if you have the table opened 3 times.\nInstead its cloning 3 times that initial built recordset. \nThis is much faster and takes less memory because clones are like a pointer to the recordset.\n\nThe main goal of adordd continue to be absolutely no code change in our apps!\nadordd its more compatible with clipper code than ads rdd.\n\nResuming you dont need any re coding.\n\nThe best way for you to try is to do:\n\n1) All sets in the top of your main check the 01_readme.pdf\n\n2) At the top of your app, after all SETs place hb_AdoUpload( \"c:\\yourdatabasepathroot\\, \"your actual rdd\", \"for ex MYSQL\", .F. // TO LET YOU RUN THIS AGAIN IF SOMETHING FAILS )\n\n3)Attach adordd.prg to your project Compile and link.\n\nYou should be able to run your app agter the uplaod of all tables.\n\nI ve ported last Monday a big app just like that.\n\n1) Steps mentioned above\n2) Overnight to upload all the tables to MYSQL\n3) Its running and being tested and it seems everything its ok \n\nBuilding the SET ADODBF INDEX might take longer because if app does not have already a central function to do it you will have to look at the code or build a small function to do it auto for you but then you must to run all routines.\nIn this app Ive ported was not the case as it had already a function to take care of all this so it was extremely fast.\n\nGo forward.", "time": "15:50", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nIts really very simple.\nI port apps like this:\n\n1) Add adordd.prg to the actual project.\n\n2) Then code in at the initial proc or function :\n\n[code=fw:2iuaxlvz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />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 />RddSetDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADORDD\"</span><span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">IF</span> RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"ADORDD\"</span><br /><br />&nbsp; &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;\">&#125;</span><br />&nbsp; &nbsp; SET ADO TEMPORAY NAMES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TMP\"</span>,<span style=\"color: #ff0000;\">\"TEMP\"</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; SET ADO <span style=\"color: #0000ff;\">INDEX</span> UDFS <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"IF\"</span>,<span style=\"color: #ff0000;\">\"&\"</span>,<span style=\"color: #ff0000;\">\"SUBSTR\"</span>,<span style=\"color: #ff0000;\">\"==\"</span>,<span style=\"color: #ff0000;\">\"DESCEND\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">//at least these must be in and our Udfs</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 />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// SET ADO FIELDRECNO TABLES LIST TO {...}</span><br />&nbsp; &nbsp; SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DELETED FIELD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HBDELETE\"</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//SET ADO FIELDDELETED TABLES LIST TO {.... }</span><br /><br />&nbsp; &nbsp; SET ADO LOCK CONTROL SHAREPATH <span style=\"color: #0000ff;\">TO</span> &nbsp;<span style=\"color: #ff0000;\">\"******\"</span> RDD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp; SET ADO FORCE LOCK <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #B900B9;\">//might be off </span><br /><br />&nbsp; &nbsp; SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DATABASE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"******\"</span> <span style=\"color: #00C800;\">SERVER</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"*****\"</span> &nbsp;ENGINE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"MYSQL\"</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 />&nbsp; &nbsp; SET ADO TABLENAME WITH PATH <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp; SET ADO CACHESIZE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">50</span> ASYNC <span style=\"color: #0000ff;\">ON</span> ASYNCNOWAIT <span style=\"color: #0000ff;\">ON</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//MSGINFO(\"PRE OPEN\")</span><br />&nbsp; &nbsp; SET ADO PRE OPEN THRESHOLD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">3000</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// MSGINFO(\"PRE OPEN END\")</span><br /><br />&nbsp; &nbsp; SET AUTOPEN OFF <span style=\"color: #B900B9;\">//can be on</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//comment this line after first execution to be faster</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//if &nbsp;you dot comment it every execution will check if all tables have been loaded and because lOverwrite is .F.</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//do nothing</span><br />&nbsp; &nbsp; hb_AdoUpload<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\y</span>ourdatabasepathroot<span style=\"color: #000000;\">\\,</span> \"</span>your actual rdd<span style=\"color: #ff0000;\">\", \"</span><span style=\"color: #00C800;\">for</span> ex MYSQL<span style=\"color: #ff0000;\">\", .F. )<br /><br />&nbsp;ENDIF<br /></span></div>[/code:2iuaxlvz]\n\n3) Compile and re link. Only adordd.prg and the prg where you place this code get compiled.\n\n4) To revert to your previous app just comment rddregister and reesetdefault and rebuild it.\n\nYou can test it immediately in a real app. Doesn't work ? You dont like the result ? go to step 4.\n\nIf you need in later stage to USE... WHERE clause you must include adordd.ch in your files and then all get compiled.\n\nHope this will help you to go a head.", "time": "16:51", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks for your prompt, extensive, and [b:2gv77tkj]encouraging[/b:2gv77tkj] responses. I will be reading and re-reading them, and I will test them as soon as I can.\n\nKeep up the great work.\n\nRegards,\nJames", "time": "17:07", "topic": "ADO RDD xHarbour", "username": "James Bott" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, a suggestion:\nIn ADOSHOWERROR() should also the database an the actual table displayed!\n\nAnd a question: \nCode like [code=fw:30ar8u3l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> TESTADISC->REDATUM <span style=\"color: #0000ff;\">TO</span> TMP</div>[/code:30ar8u3l] are functioning? Maybe this command can fill the SET ADODBF TABLES INDEX LIST TO...", "time": "17:26", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nAny valid clipper expression must work. If not something is wrong with adordd.\n\nADODBF INDEX ... is only for indexes that are used by the app and are created only once.\nAll indexes created (normally temporary) during app run time should not be place there.\nadordd will create them as any other rdd.\n\nSee my previous post to James regarding porting of apps to adordd.\nThe best way is to go straight forward with a real app. \nYou dont alter anything so it really easy to roll it back if you are not happy with it.\n\nDo you have already a real app working with adordd ?\nWhat engine you use?", "time": "17:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, i use MSSQL. I have explored in the meantime the rdd. All is ok. And i found out, that indexes with ADODBF INDEX ... are in ordernumber < indexes created with INDEX ON... and both can used the same time. Indexes without UDF are really extreme in speed! Some indexes (fields) i will change to use this speed.\nThanks!", "time": "16:37", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIm glad to know that it suites you.\n\n[quote:39xaxvhw]...that indexes with ADODBF INDEX ... are in ordernumber < indexes created with INDEX ON... and both can used the same time[/quote:39xaxvhw]\n\nI dont understand what you mean.Is it a bug?", "time": "19:39", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nStill I dont get it.\nIf you have autoopen on always the ADBODBF INDEX its added first to the order list when you open the table.\nIf INDEX ON is after it will be added after.\nIf autopen off index on will be added first if you not did explicitly set index to the index in ADODBF INDEX.\n\nIf you found other behavior this is not the standard clipper its a bug!", "time": "20:12", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, not a bug!\nI have tested ADODBF INDEX ... and INDEX ON... at same time. The OrdList begins [b:stq41aw4]always[/b:stq41aw4] with the indizes defined in ADODBF INDEX ... This is very important to know!", "time": "19:50", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, for me the RDD works perfect!\n\nA practice suggestion: \nIn ADOPREOPENTHRESHOLD() not only the size in records should work as a filter. Also a substring (or a array with substrings) of the tablename are interesting for filtering the DBs for pre-open! (ex. only \"2015\" -> DB2015 and Faw2015gt and Klima2015 and ......)", "time": "14:01", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nGreat! Im glad to know <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n[quote:1chfqo60]A practice suggestion: \nIn ADOPREOPENTHRESHOLD() not only the size in records should work as a filter. Also a substring (or a array with substrings) of the tablename are interesting for filtering the DBs for pre-open! (ex. only \"2015\" -> DB2015 and Faw2015gt and Klima2015 and ......)[/quote:1chfqo60]\n\nNote taken Ill see what can be done.\n\nCould you share your experience ?\n\nTime of conversion of the app\nAny app code changed ? Why?\n\nDb engine used\nDatabase size\nAverage table size (nr of rows)\nBiggest table size (nr of rows)\nLan and / or Wan\nNr of users\nConcurrent use (new additions by others) and locking\n\nDoes app use ?\nRelations\nScopes\nFilters\nIndexes with UDFs\nLocks\nTransactions\n\ndo you use ado or sql directly through for example adofuncs.prg or any class and does adordd catch well eventually new additions by those processes? \n\nOverall performance compared to others rdds 1 to 5 (1 being the slowest)\n\nIs it in production?\n\nThanks", "time": "20:30", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, before i test my app with ca. 60 DBs with your ADORDD i must change some field-names (ex. CHECK or SCHEMA) as they are not allowed in SQL.\nI use MSSQL. In my tests indices with UDFs should be avoided (>1000 records). The fastest way is to use only full fieldnames for indexkey. There are some DB-changes recommendable.\nFor future i will report you all my experiences!", "time": "10:25", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nThe tests Ive made with Mysql and reserved keywords as field name its working ok.\n\nYou cant use those keywords in triggers, procedures functions etc but should be ok as field names as they are special quoted in all expressions.\n\nPlease try it because I think you dont need to do anything.\n\n[quote:2j4b5g9s]I use MSSQL. In my tests indices with UDFs should be avoided (>1000 records)[/quote:2j4b5g9s]\n\nI tried it in Mysql with 1000 and its slower but still ok.\n\nCan you post some examples of such UDFs?\n\n[quote:2j4b5g9s]For future i will report you all my experiences![/quote:2j4b5g9s]\n\nThanks.", "time": "12:03", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "MSSQL-Server native errors 102 or 156: Incorrect syntax near the keyword 'BIT', Incorrect syntax near the keyword 'SCHEMA'. I use SCHEMA and CHECK as fieldnames -> not allowed!", "time": "14:25", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nI forgot to have it done to MSSQL.\n\nPlace this line in ADOQUOTEDCOLSQL in CASE dbEngine = \"MSSQL\"\n\ncCol := \"`\" + cCol + \"`\"\n\nif it doesnt work try\n\ncCol := '[' + cCol + ']'\n\nShould work now.", "time": "14:38", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "OK now []! Thanks.", "time": "19:40", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, I found, that when the eof() reached no further operations in this table are possible! I must use GO TOP in this case and then the table is reachable again!\n(MSSQL)", "time": "11:23", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIm not using MSSQL Im using MySql and its ok.\n\nCan you post code example ?", "time": "12:05", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "After [code=fw:3g50i7vb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">dbgoto<span style=\"color: #000000;\">&#40;</span>lastrec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:3g50i7vb] is no dbseek() possible (records to found are present)! Or after a dbseek() with no result another dbseek() are not possible.\n[quote:3g50i7vb]If the searched value is not found, DbSeek() positions the record pointer on the \"ghost record\" (Lastrec()+1) by default, and the function Found() returns .F. (false), while Eof() returns .T. (true).[/quote:3g50i7vb]\nI think this \"ghost record\" is the reason!?", "time": "12:48", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nHere its ok.\nMy test:\n\n[code=fw:3cwailgd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />use table<br />set <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">to</span> someindex<br />dbgoto<span style=\"color: #000000;\">&#40;</span>lastrec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//record not found goes eof</span><br />seek <span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp;1/99\"</span> <span style=\"color: #B900B9;\">//if recordset not empty goes first and find OK</span><br />browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<br />dbgobottom<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />skip <span style=\"color: #000000;\">1</span><br /><span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>cvaltochar<span style=\"color: #000000;\">&#40;</span>eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" \"</span>+cvaltochar<span style=\"color: #000000;\">&#40;</span>recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />skip <span style=\"color: #000000;\">-1</span><br /><span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>cvaltochar<span style=\"color: #000000;\">&#40;</span>eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" \"</span>+cvaltochar<span style=\"color: #000000;\">&#40;</span>recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />skip <span style=\"color: #000000;\">-1</span><br /><span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>cvaltochar<span style=\"color: #000000;\">&#40;</span>eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" \"</span>+cvaltochar<span style=\"color: #000000;\">&#40;</span>recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3cwailgd]\n\nDo you have any scopes and/or filters?", "time": "13:11", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nThe SELECT used in adoreccount if im not mistaken supplied by you its the only difference between MySql and MsSQL.\n\nTry to change ti to SELECT MAX(... and check results.", "time": "13:52", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Now i found out:\nIf i use TESTADISC->(dbsetorder(1)) and the indexkey of this order is UDF then the seek is not functioning! If i use after dbsetorder() a GO TOP then is functioning!\n\n[code=fw:39knbc4w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">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;\">\"AW2015\"</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"REV\"</span>,<span style=\"color: #ff0000;\">'REV2TO2(REDATUM)'</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"RR\"</span>,<span style=\"color: #ff0000;\">\"bu_korrindex(redatum,ideingdat)\"</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"EW\"</span>,<span style=\"color: #ff0000;\">'REV2TO2(REDATUM)'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />SET ADO <span style=\"color: #0000ff;\">INDEX</span> UDFS <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"IF\"</span>,<span style=\"color: #ff0000;\">\"&\"</span>,<span style=\"color: #ff0000;\">\"SUBSTR\"</span>,<span style=\"color: #ff0000;\">\"SUBS\"</span>,<span style=\"color: #ff0000;\">\"==\"</span>,<span style=\"color: #ff0000;\">\"REV2TO2\"</span>,<span style=\"color: #ff0000;\">\"REVEING\"</span>,<span style=\"color: #ff0000;\">\"BU_KORRINDEX\"</span><span style=\"color: #000000;\">&#125;</span><br /><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbgoto<span style=\"color: #000000;\">&#40;</span>TESTADISC-><span style=\"color: #000000;\">&#40;</span>lastrec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>    <span style=\"color: #B900B9;\">//damit keine anzeige</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbsetorder<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: #B900B9;\">//  GO TOP</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbseek<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"0227\"</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /> Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:39knbc4w]", "time": "14:10", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIs this still true if you comment [code=fw:2wfwd5bl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbgoto<span style=\"color: #000000;\">&#40;</span>TESTADISC-><span style=\"color: #000000;\">&#40;</span>lastrec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">//damit keine anzeige</span></div>[/code:2wfwd5bl] ?", "time": "15:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nI think Ive got it.\n\nChange the line in ado_seek.\n\n[code=fw:2osesxxf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #B900B9;\">//WITH :FILTER OR MOE THAN ONE FIELD</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Filter</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lSoftSeek<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos := ASCAN<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_ABOOKMARKS <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span>|x| &nbsp;<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> VALTYPE<span style=\"color: #000000;\">&#40;</span> x<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: #ff0000;\">\"C\"</span>,<span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span>, LEN<span style=\"color: #000000;\">&#40;</span> cKey <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = cKey ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> = cKey &nbsp; <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nPos = <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// oRs:Eof() //!lFindLast &nbsp; &nbsp; <========</span><br />&nbsp;</div>[/code:2osesxxf]\n\nIs it working ?", "time": "15:57", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, no working! This is only for softseek!?", "time": "16:08", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nRight nevertheless that was a bug!\n\nIs it still occur if you comment TESTADISC->(dbgoto(TESTADISC->(lastrec()+1))) //damit keine anzeige ?", "time": "16:25", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, no! If this line comment out is functioning! \nBut when i make a dbseek() with found()==.F. the recordpointer also go to lastrec()+1 and no moree seeks are possible!\nATTENTION: THIS BEHAVIOR ONLY IN SEEKS WITH UDF.", "time": "16:31", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nPlease place a msginfo in ado.seek after ELSE //WITH :FILTER OR MOE THAN ONE FIELD and check if it is called.\n\nYou can place another one in the else for not softseek reporting npos.", "time": "17:16", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2dlmi5ui]Please place a msginfo in ado.seek after ELSE //WITH :FILTER OR MOE THAN ONE FIELD and check if it is called.\n[/quote:2dlmi5ui]\nYes, is called\n[quote:2dlmi5ui]You can place another one in the else for not softseek reporting npos.[/quote:2dlmi5ui]\nshows 0", "time": "17:37", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:1ujgi6g2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nPos > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRS:<span style=\"color: #000000;\">BookMark</span> := &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_ABOOKMARKS <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span> npos <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><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; &nbsp; oRs:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;</div>[/code:1ujgi6g2]\n\nIf it gets here and is 0 then goes eof and !found.\nThen the key is not in the array.\n\nAre you trying both seeks with the same key ?\nThe first that works and the second?", "time": "18:03", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, on both no found()!\nConclusion: Always if i use dbsetorder() before dbseek() and the recordpointer is on lastrec()+1 and a UDF is in work the index is not functioning! <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "18:34", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "So its a set order problem!\nIf you browse it is it ordered ok?\n\nPlace again a msginfo( len( aWAData[ WA_ABOOKMARKS ][aWAData[WA_INDEXACTIVE]] ) the same place as before and check if effectively has the index built.", "time": "18:44", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gives 72 (the len of table).\nRecordpointer stands on lastrec()+1 and the table is not indexed.", "time": "19:09", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Try the same after dbsetorder and check with ordname and ordkey inyour app order is in fact active.", "time": "19:54", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, the name and the key is active!", "time": "20:03", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther\n\nAnd the len of the array?", "time": "20:28", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Len of array is the len of the table!", "time": "20:38", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Try this:\n\n[code=fw:3clsd6bu]<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;\">\"AW2015\"</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"REV\"</span>,<span style=\"color: #ff0000;\">'REV2TO2(REDATUM)'</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"RR\"</span>,<span style=\"color: #ff0000;\">\"bu_korrindex(redatum,ideingdat)\"</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"EW\"</span>,<span style=\"color: #ff0000;\">'REV2TO2(REDATUM)'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />SET ADO <span style=\"color: #0000ff;\">INDEX</span> UDFS <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"IF\"</span>,<span style=\"color: #ff0000;\">\"&\"</span>,<span style=\"color: #ff0000;\">\"SUBSTR\"</span>,<span style=\"color: #ff0000;\">\"SUBS\"</span>,<span style=\"color: #ff0000;\">\"==\"</span>,<span style=\"color: #ff0000;\">\"REV2TO2\"</span>,<span style=\"color: #ff0000;\">\"REVEING\"</span>,<span style=\"color: #ff0000;\">\"BU_KORRINDEX\"</span><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//TESTADISC->(dbgoto(TESTADISC->(lastrec()+1)))   </span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbsetorder<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 />BROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//IS IT WELL ORDERED ?</span><br />GO TOP <span style=\"color: #B900B9;\">// TRY WITH AND WITHOUT THIS</span><br />BROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//IS IT WELL ORDERED ?</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbseek<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"0227\"</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">&#40;</span> CVALTOCHAR<span style=\"color: #000000;\">&#40;</span>FOUND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" \"</span>+CVALTOCHAR<span style=\"color: #000000;\">&#40;</span>EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// .F. .T. ?</span><br />GO TOP<br /><span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">&#40;</span>RECNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> !EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />     ? INDEXKEY<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//DO YOU SEE THE KEYYOU ARE SEEKING?</span><br />      SKIP<br /><span style=\"color: #00C800;\">ENDDO</span><br /> Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3clsd6bu]\n\nHaving the msginfo in ado_seek as previously.", "time": "20:42", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, the results:\n\n[code=fw:m35nlurr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//TESTADISC->(dbgoto(TESTADISC->(lastrec()+1)))</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbsetorder<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 />BROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//IS IT WELL ORDERED ? -> ordered well</span><br />GO TOP <span style=\"color: #B900B9;\">// TRY WITH AND WITHOUT THIS //equal</span><br />BROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//IS IT WELL ORDERED ? -> ordered well</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbseek<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"0227\"</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">&#40;</span> CVALTOCHAR<span style=\"color: #000000;\">&#40;</span>FOUND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" \"</span>+CVALTOCHAR<span style=\"color: #000000;\">&#40;</span>EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// .F. .T. ?    ->  .T. .F.</span><br />GO TOP<br /><span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">&#40;</span>RECNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// -> 1</span><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> !EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      ? INDEXKEY<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//DO YOU SEE THE KEYYOU ARE SEEKING? -> key is right</span><br />      SKIP<br /><span style=\"color: #00C800;\">ENDDO</span><br />Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ->  stands on lastrec()+1</span></div>[/code:m35nlurr]\nNow the recordpointer is NOT on lastrecord()", "time": "21:01", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Just a idea: should the lenght of bookmark-array have also reccount()+1?", "time": "22:00", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, please send to my email office(at)byte-one.com a short description from the way you process indexes with UDFs! I will try to help you to ident the problem.\nGood Night!", "time": "22:44", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nThe array of bookmarks is: 1st ele ado bookmark 2 ele evaluated expression. \nThe array gets ordered by 2nd ele expression and used by ado :filter := array of bookmarks which is 1st ele.\n\nOnce you call seek that goes to ado_seek and if it enters the ELSE //WITH :FILTER OR MOE THAN ONE FIELD\njust scans the array looking for the seek expression in the 2nd ele and returns the first ele to have it to move to that bookmark. ors:bookmark := 1st ele. Eof recno doesnt matter.\n\nYou confirmed that the number of eles in the array was correct and npos = 0 wich means not found!\nYou confimed in while !eof() that the indexkey(0) its correct.\n\nI cant see what ghost record has to do with it or go top but he fact is that work in one case not the other.\n\nI guess the data type you are looking its string.\n\nDid you tried that same code with dbfcdx?\n\nCan you post you UDF and I´ll try it tomorrow here.", "time": "22:49", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, if i use this on beginn of your test all is OK:\n[code=fw:3j0h3cs0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbsetorder<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 />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbgoto<span style=\"color: #000000;\">&#40;</span>TESTADISC-><span style=\"color: #000000;\">&#40;</span>lastrec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//TESTADISC->(dbsetorder(1))</span><br /> </div>[/code:3j0h3cs0]\nIf i use this, then NOT:\n[code=fw:3j0h3cs0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//TESTADISC->(dbsetorder(1))</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbgoto<span style=\"color: #000000;\">&#40;</span>TESTADISC-><span style=\"color: #000000;\">&#40;</span>lastrec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />TESTADISC-><span style=\"color: #000000;\">&#40;</span>dbsetorder<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 /> </div>[/code:3j0h3cs0]\n\nThe same code in DBFNTX is functioning over years. This is the UDF:\n[code=fw:3j0h3cs0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> rev2to2<span style=\"color: #000000;\">&#40;</span>cTausch<span style=\"color: #000000;\">&#41;</span>    <span style=\"color: #B900B9;\">// tauscht 3 u. 4 mit 1 u. 2</span><br /><span style=\"color: #00C800;\">return</span> subs<span style=\"color: #000000;\">&#40;</span>cTausch,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> + subs<span style=\"color: #000000;\">&#40;</span>cTausch,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3j0h3cs0]\nBut on ALL UDFs this error occurs.", "time": "09:02", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nOk now I get same problem. \n\nLet me check it and Ill revert asap.\n\nBy the way why are you doing TESTADISC->(dbgoto(TESTADISC->(lastrec()+1))) before set order ?", "time": "09:35", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, at initial the browse should no show any records. After this, the user will search anything and i switch to the approbate order.", "time": "09:54", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nI see.\n\nReplace with this in adordd.prg and let me know.\nPlease note the ado_create condition only in index creation because if its a subindex (while clause) we dont clean nothing.\n\n[code=fw:re3b3jfh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADOUDFINDEX<span style=\"color: #000000;\">&#40;</span> nWa, xExpression, xCondition, lUnique, lDesc, bEval,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEvery, xWhile, aBookMarks, cExpression <span style=\"color: #000000;\">&#41;</span><br />&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;<span style=\"color: #B900B9;\">//LOCAL aWAData := USRRDD_AREADATA( nWA )</span><br />&nbsp;<span style=\"color: #00C800;\">LOCAL</span> lRetVal := .F.<br />&nbsp;<span style=\"color: #00C800;\">LOCAL</span> aUdfs := ListUdfs<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, n<br />&nbsp;<span style=\"color: #00C800;\">LOCAL</span> bIndexExprn, bFilterCond, nDecimals, bWhile, nStart := <span style=\"color: #000000;\">1</span><br />&nbsp;<span style=\"color: #00C800;\">LOCAL</span> xEvaluated<br /><br />&nbsp; &nbsp;bEval &nbsp;:= <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> bEval == <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #000000;\">&#123;</span> || .T. <span style=\"color: #000000;\">&#125;</span>, bEval <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nEvery := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> nEvery == <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #000000;\">0</span>, nEvery <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cEXpression := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> cExpression = <span style=\"color: #00C800;\">NIL</span>, cExpression := xExpression, cEXpression <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ! EMPTY<span style=\"color: #000000;\">&#40;</span> aUdfs <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aUdfs <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> <span style=\"color: #00C800;\">AT</span><span style=\"color: #000000;\">&#40;</span> aUdfs<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>, UPPER<span style=\"color: #000000;\">&#40;</span>cExpression<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRetval := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ! EMPTY<span style=\"color: #000000;\">&#40;</span> xCondition <span style=\"color: #000000;\">&#41;</span> .OR. ! EMPTY<span style=\"color: #000000;\">&#40;</span> xWhile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; lRetVal = .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lRetVal <span style=\"color: #B900B9;\">//.OR. PROCNAME( 1 ) = \"ADO_ORDCREATE\"</span><br />&nbsp; &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_ORDCREATE\"</span> &nbsp;<span style=\"color: #B900B9;\">//CAN BE SUBINDEX CREATION</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">Filter</span> := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">Sort</span> := ADO_GET_FIELD_RECNO<span style=\"color: #000000;\">&#40;</span> &nbsp; USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_TABLEINDEX <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; aBookMarks :=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> xWhile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; xWhile := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> EMPTY<span style=\"color: #000000;\">&#40;</span> xWhile <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\".T.\"</span>, xWhile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; xCondition := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> EMPTY<span style=\"color: #000000;\">&#40;</span> xCondition <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\".T.\"</span>, xCondition <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> VALTYPE<span style=\"color: #000000;\">&#40;</span> xExpression <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"B\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bIndexExprn := xExpression<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bIndexExprn := &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{ || \"</span> + xExpression + <span style=\"color: #ff0000;\">\"}\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> VALTYPE<span style=\"color: #000000;\">&#40;</span> xCondition <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"B\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bFilterCond := xCondition<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bFilterCond := &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{ || \"</span> + xCondition + <span style=\"color: #ff0000;\">\"}\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> VALTYPE<span style=\"color: #000000;\">&#40;</span> xWhile <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"B\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhile := xWhile<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhile := &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{ || \"</span> + xWhile + <span style=\"color: #ff0000;\">\"}\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; nDecimals := SET<span style=\"color: #000000;\">&#40;</span> _SET_DECIMALS, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; n := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nStart > <span style=\"color: #000000;\">0</span> .AND. !ADOEMPTYSET<span style=\"color: #000000;\">&#40;</span> oRecordSet <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ADO_GOTOP<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> EVAL <span style=\"color: #000000;\">&#40;</span>bWhile <span style=\"color: #000000;\">&#41;</span> .AND. !oRecordSet:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nEvery > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> n = nEvery<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVAL<span style=\"color: #000000;\">&#40;</span> bEval <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xEvaluated := EVAL<span style=\"color: #000000;\">&#40;</span> bIndexExprn <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lUnique<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> ASCAN<span style=\"color: #000000;\">&#40;</span> aBookMarks,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span>|x| &nbsp;<span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span>, LEN<span style=\"color: #000000;\">&#40;</span> xEvaluated <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = xEvaluated &nbsp;<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> EVAL<span style=\"color: #000000;\">&#40;</span> bFilterCond <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style=\"color: #000000;\">&#40;</span> aBookMarks, <span style=\"color: #000000;\">&#123;</span> oRecordSet:<span style=\"color: #000000;\">BookMark</span>, xEvaluated <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&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;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> EVAL<span style=\"color: #000000;\">&#40;</span> bFilterCond <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style=\"color: #000000;\">&#40;</span> aBookMarks, <span style=\"color: #000000;\">&#123;</span> oRecordSet:<span style=\"color: #000000;\">BookMark</span>, xEvaluated <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDDO</span><br /><br />&nbsp; &nbsp; &nbsp; SET<span style=\"color: #000000;\">&#40;</span> _SET_DECIMALS, nDecimals <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lDesc<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ASORT<span style=\"color: #000000;\">&#40;</span> aBookMarks, <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #000000;\">&#123;</span> |x,y| x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> > y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ASORT<span style=\"color: #000000;\">&#40;</span> aBookMarks, <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #000000;\">&#123;</span> |x,y| x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// only with set focus these bookmarks become active</span><br />&nbsp; &nbsp; &nbsp; lRetVal := .T.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; lRetVal := .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> lRetVal<br />&nbsp;</div>[/code:re3b3jfh]", "time": "11:01", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, it seems, all is OK!\nThanks very much!\nI will further report bugs and required changes in code while convert to MSSQL.", "time": "11:18", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nGlad to know.\n\nPlease report as bug if you need to change any code line other than for better performance.\n\nThanks,", "time": "11:36", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-10", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd ver 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nCorrected bugs:\n Indexes with UDFs.\n Lock list array\n DBEVAL \n Any :requery calls auto call ordsetfocus() to update indexes.\n\nChanges:\n\n1) ADO_CREATE \nCorrected sequences and triggers for Oracle and Firebird \n\n2) SET ADO ROOT PATH TO ... INSTEAD OF ...\nThis will allow you to upload the tables with certain path structure and then run the app with\na different path.\nIf the tables names are with path on without this set the app wouldn't run.\n\n3) SET ADO TABLES LOGICAL FIELDS LIST TO \nThis array set is { { Tablename1, {Boolean field1, booleanfield2,...} },;\n { tablename2, .....} }\nTo identify Boolean fields for engines that don't have Boolean type such as Oracle, Firebird, \nSqlite and others.\nIn these cases there is no way to find out if a field is Boolean therefore we need this set to\nlet adordd know the Boolean fields present in each table.\n\nIn order to avoid extra work When uploading tables only from dbfcdx family of rdds adordd\nbuilds itself the internal array, because through the dbfcdx rdd it knows if a field is Boolean, in order\nthat the uploading process doesn't errors.\nAt the same time adordd writes all this information in a file .ado to let you have the relation of all\ntables and Boolean fields that you must place in this set next time app runs otherwise the results\nare unpredictable. THE FILE \"BOOELANFIELDS.ADO\" IS IN APP START PATH.\n\nWhen creating new tables, not temporary, you must inform adordd through this set of the Boolean fields.\nWith temporary tables its not needed because at the of the creation adordd keeps a record of Boolean type \nfields but only during run time of the app.\n\nIf you are working with engines that have Boolean type field you might forget this set.\n\n4) adordd tested ok with sqlite and firebird besides MsSql, MySql, Access, ADS, FoxPro, Dbase.\nShould run without problems but not tested with Sybase kind of Sql Servers, Informix, PostGre.\nProbably Oracle also but Ill check it soon.", "time": "23:13", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, please see on this! (Never changed!)\n[url:2mkco2uy]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=30266&start=930#p183330[/url:2mkco2uy]\n\nAnother bug in the new version:\nI use MSSQL. The array seems not exist!?\n[quote:2mkco2uy] Error description: Error BASE/1123 Argument error: AADD\n Args:\n [ 1] = U \n [ 2] = A { ... }\n\nStack Calls\n===========\n Called from: => AADD( 0 )\n Called from: C:\\adordd\\adordd.prg => ADO_ADDLISTFIELDLOGICAL( 4931 )\n Called from: C:\\adordd\\adordd.prg => ADOSTRUCTTOSQL( 4799 )\n Called from: C:\\adordd\\adordd.prg => ADO_CREATE( 4608 )[/quote:2mkco2uy]", "time": "15:34", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nThe other 2 done!\n\nPlease alter :\n\n[code=fw:yw2pm65k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> ListFieldLogical<span style=\"color: #000000;\">&#40;</span> alist <span style=\"color: #000000;\">&#41;</span><br />&nbsp;<span style=\"color: #00C800;\">STATIC</span> aListFieldLogical := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:yw2pm65k]", "time": "16:22", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, should we not close the connection to the server automatically?", "time": "10:20", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd ver 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nCorrected bugs:\n\nLogical fields array initialization.\nscoped relations Scopes were not cleared when clear relation.\nEof and Bof vars were not being reset correctly by gotop and gobottom.\n\nChanges:\n\n1) New SET ADO TABLES DECIMAL FIELDS LIST TO....\nSome engines like Access and SQlLite do not have specifically fields with decimal notation.\nIn these cases it was defaulting to 2 decimal places where could be more.\nIf the app would picture the gets with the fielddec function the nr of decimals places that could be entered\nwas only 2 although might be more.\nWith this set we let adordd knows the nr of decimals places per table and field.\nWhen uploading tables that is done auto by adordd like for logical fields.\nIf you work with an engine that supports notation of decimals per field you might forget this set.", "time": "21:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, there is a incompatibility in the RDD:\nIf creating a table that already exist in the DB, an error occurs!\nIn (x)Harbour in this case the present table is automatically deleted and the new one are created!\n\nAnd some better format for the ADOSHOWERROR()\n\n[code=fw:nonnblnl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> ADOSHOWERROR<span style=\"color: #000000;\">&#40;</span> oCn, cTable, lSilent <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> nErr, oErr, cErr<br /><br />   <span style=\"color: #00C800;\">DEFAULT</span> oCn <span style=\"color: #0000ff;\">TO</span> oConnection<br />   <span style=\"color: #00C800;\">DEFAULT</span> lSilent <span style=\"color: #0000ff;\">TO</span> .F.<br />   <span style=\"color: #00C800;\">DEFAULT</span> cTable <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"\"</span><br /><br />   <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">&#40;</span> nErr := oCn:<span style=\"color: #000000;\">Errors</span>:<span style=\"color: #0000ff;\">Count</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />      oErr  := oCn:<span style=\"color: #000000;\">Errors</span><span style=\"color: #000000;\">&#40;</span> nErr - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">IF</span> ! lSilent<br />         WITH OBJECT oErr<br />            cErr     := <span style=\"color: #ff0000;\">'Table: '</span> + cTable<br />            cErr     += CRLF + CRLF + oErr:<span style=\"color: #000000;\">Description</span><br />            cErr     += CRLF + <span style=\"color: #ff0000;\">'Source : '</span> + oErr:<span style=\"color: #000000;\">Source</span><br />            cErr     += CRLF + <span style=\"color: #ff0000;\">'NativeError : '</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> oErr:<span style=\"color: #000000;\">NativeError</span> <span style=\"color: #000000;\">&#41;</span><br />            cErr     += CRLF + <span style=\"color: #ff0000;\">'Error Source : '</span> + oErr:<span style=\"color: #000000;\">Source</span><br />            cErr     += CRLF + <span style=\"color: #ff0000;\">'Sql State : '</span> + oErr:<span style=\"color: #000000;\">SQLState</span><br />            cErr     += CRLF + REPLICATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">'-'</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#41;</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br />            cErr     += CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br /><br />            MSGALERT<span style=\"color: #000000;\">&#40;</span> cErr, <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> oCn:<span style=\"color: #000000;\">Provider</span> = <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #ff0000;\">\"ADO ERROR\"</span>,oCn:<span style=\"color: #000000;\">Provider</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         END<br />      <span style=\"color: #00C800;\">ENDIF</span><br /><br />   <span style=\"color: #00C800;\">ELSE</span><br />      MSGALERT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADO ERROR UNKNOWN\"</span>+;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span> + ;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span> + ;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span> + ;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span> + ;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span> + ;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span> + ;<br />                CRLF + PROCNAME<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span>  + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">&#40;</span> PROCLINE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br />   <span style=\"color: #00C800;\">RETURN</span> oErr</div>[/code:nonnblnl]", "time": "10:49", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nOk Ill change it if table exists it will overwritten!\n\nADoshowerror changed to yours with following change:\n\n[code=fw:3u0pr66v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT oErr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cErr &nbsp; &nbsp; := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cTable <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'Table: '</span> + cTable +CRLF + CRLF ,<span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cErr &nbsp; &nbsp; += oErr:<span style=\"color: #000000;\">Description</span><br />&nbsp;</div>[/code:3u0pr66v]\n\nThanks", "time": "11:26", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\n[quote:139wezyt]\nIn ADOPREOPENTHRESHOLD() not only the size in records should work as a filter.\nAlso a substring (or a array with substrings) of the tablename are interesting for filtering \nthe DBs for pre-open! (ex. only \"2015\" -> DB2015 and Faw2015gt and Klima2015 and ......)\n[/quote:139wezyt]\n\nHaving ADOPREOPENTHRESHOLD working like that we will not be able to tune it accordingly to our available memory.\nSuppose that tables with \"2015\" in the name when opened all together the memory gets exhausted we dont have any way to tune it up. We must take out \"2015\" and pre open any.\nWith nrecords we simply increase the value to straighten the number of tables pre opened accordingly to our available memory.\nWhat in fact takes time in opening during execution its tables lets say above 10.000 records there is not interest in pre open for ex tables with 500 records even if they have in the name \"2015\".\nYou dont get any improvement in speed.\n\nMay be Im seeing it wrong but it seems to me that we dont need it.\nDo you agree?", "time": "09:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, i want have this [b:3sz0lrap]additional[/b:3sz0lrap]! to the size of records!\nex. [code=fw:3sz0lrap]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">SET ADO PRE OPEN THRESHOLD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">10000</span> <span style=\"color: #000000;\">&#91;</span>MASK <span style=\"color: #ff0000;\">\"2015\"</span>,<span style=\"color: #ff0000;\">\"2014\"</span><span style=\"color: #000000;\">&#93;</span></div>[/code:3sz0lrap]\n\nAnother thing for practice:\nIf the database cannot opened for now the app quits. But the developer will do in most cases another end of the app. (Writing a log or so,...).\nMy proposal: Add clausula [ON ERROR <functionslist>]\n\n[code=fw:3sz0lrap]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DATABASE <span style=\"color: #0000ff;\">TO</span> <cDB> <span style=\"color: #00C800;\">SERVER</span> <span style=\"color: #0000ff;\">TO</span> <cServer> ENGINE <span style=\"color: #0000ff;\">TO</span> <cEngine> <span style=\"color: #000000;\">&#91;</span>USER <span style=\"color: #0000ff;\">TO</span> <cUser><span style=\"color: #000000;\">&#93;</span>  <span style=\"color: #000000;\">&#91;</span>PASSWORD <span style=\"color: #0000ff;\">TO</span> <cPass><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span>CLASSNAME <cClass><span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">ON</span> ERROR <functionslist><span style=\"color: #000000;\">&#93;</span></div>[/code:3sz0lrap]", "time": "11:24", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIt seems quite a good idea. Lets do it!\n\nHow shall we do it ?\nI assume your idea is nrecords .OR. mask ?\n\nConcerning ON ERROR cant this be done by the user defining a EXIT PROCEDURE instead?\n\nin ADOGETCONNECT instead of QUIT I could make RETURN .F..\nThis only happens in app startup with SET ADO DATABASE TO....", "time": "11:43", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, \n[quote:2e950bj3]I assume your idea is nrecords .OR. mask ?[/quote:2e950bj3]\nNo, my idea is nrecords .AND. mask ? ex. In a app every year are building a new table with table\"year\" and becomes the focus. Older tables are not to preopen!\n\n[quote:2e950bj3]Concerning ON ERROR cant this be done by the user defining a EXIT PROCEDURE instead?[/quote:2e950bj3]\nNot so good!? Maybe the programmer will not end the app. Instead of QUIT should in case of ON ERROR function(s) defined, these functions are to perform.", "time": "12:30", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\n[quote:2j4ipszo]No, my idea is nrecords .AND. mask ? ex. In a app every year are building a new table with table\"year\" and becomes the focus. Older tables are not to preopen![/quote:2j4ipszo]\n\nOk I see it you don't want to preopen table of previous years. Ill do it.\n\n[quote:2j4ipszo]Not so good!? Maybe the programmer will not end the app. Instead of QUIT should in case of ON ERROR function(s) defined, these functions are to perform.[/quote:2j4ipszo]\n\nI see it but then I would be more comfortable to throw an error and let the programmer take care of it which is the standard procedure. In fact there are some situations where this happens:\n\nOther application not working with delete flag recno deletes (removes) that record from the table.\nField recno or field deleted dont exist on a table.\nLock control share path doesnt exits.\n\nHow do you do it today with dbf kind of rdd ? Isn't like this? We should respect standard procedures as much as we can. Wont you agree?", "time": "12:58", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n[quote:29oonukp]How do you do it today with dbf kind of rdd ?[/quote:29oonukp]\n\nI check on start the present of all DBs and indexes. For this i hold ALL DB- and Indexnames and also the index-keys in a public array. Now it is easy to check and to organize.\nAlso for the update to ADORDD i can easy build the array for ListDbfIndex() from this public array.", "time": "13:40", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\n[quote:2i6sqr9n]I see it but then I would be more comfortable to throw an error and let the programmer take care of it which is the standard procedure.[/quote:2i6sqr9n]\n\nOk?", "time": "14:00", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "OK, Antonio! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "15:04", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-16", "forum": "FiveWin for Harbour/xHarbour", "text": "New build adordd ver 1.0 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nCorrected bugs:\n\nDBCREATE if table exists just overwrite it like in any other rdd. It was giving a error.\n\nhb_AdoRddFile( cFile ) if rddsetdefault == \"adordd\" it test if file exist in DB \notherwise it passes to normal FILE() function.So you can use it for all cases with or without adordd.\n\nWhen SET ADO DATABASE TO... cant open connection instead of quiting app it throw error 10500.\n\nChanges:\n\nSET ADO PRE OPEN THRESHOLD TO <nRecords> [ MASK <aMask> ]\nAdded new option MASK that allow to pre open recordsets containing nrecords and with value MASK in table name.", "time": "15:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nIt should be closed auto by adordd.\n\nWhen you end your app (x)Harbour auto calls ADO_EXIT that calls ADODB_CLOSE().\nThis last closes all tables (recordsets) and cached resordsets and after the connection to the server.\n\nPlease check the code.\nIs it not working?", "time": "11:06", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "It seems, this ADO_EXIT never is called! (EXIT PROCEDURE?)", "time": "11:14", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nHere it always gets called!\n\nI don't have any exit procedure.\n\nPlacing msginfo(\"ADO_EXIT \"+PROCNAME(1) +\" \"+ PROCNAME(2)+\" \"+ PROCNAME(3)+\" \"+ PROCNAME(4)) in ado_exit It shows that gets called from _QUIT.", "time": "11:31", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, no msginfo-text showing!", "time": "11:35", "topic": "ADO RDD xHarbour", "username": "byte-one" } ]
ADO RDD xHarbour
[ { "date": "2015-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Gunther,\n\nHow do you exit you app QUIT or simply RETURN ?\n\nAre you using Harbour or xHarbour?\n\nIm using xHabour and app is QUIT.", "time": "11:41", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour