topic
stringlengths
1
63
text
stringlengths
1
577k
ADO RDD xHarbour
Antonio, About Append from, please review function fw_dbftoado(). About refreshing, yes it is a behaviour in ADO, but xBrowse does refresh when scrolling. Also, I do refresh Recordset after adding of editing records, so in my opinion it´s not an issue. Thank you
ADO RDD xHarbour
[quote:34yfbjmm]About Append from, please review function fw_dbftoado().[/quote:34yfbjmm] Where can I find it? [quote:34yfbjmm]About refreshing, yes it is a behaviour in ADO, but xBrowse does refresh when scrolling. Also, I do refresh Recordset after adding of editing records, so in my opinion it´s not an issue.[/quo...
ADO RDD xHarbour
Antonio, At source\adofuncs.prg function FW_AdoImportFromDBF( oCn, cDbf, cAdoTable, cColPrefix, nMultiRowSize, aFields ) function FW_AdoExportToDBF( oRs, cDbf, lEditStruct ) In xBrowse yes. But that´s not a problem, in DBFCDX you have to issue a refresh() too. xBrowse handles it very good with ADORDD. You should...
ADO RDD xHarbour
Lucas, In the app we are working browses are not a problem. All work well without a single changed line. My worry is with transactions. The app works 99% like this: First closes and add all records to all tables necessary to the trans. If all goes well loop through those records in the several tables and replace va...
ADO RDD xHarbour
Antonio, with this new version the errors are gone except the following: I compile with xHarbour! [code=fw:3f1bm3py]<div class="fw" id="{CB}" style="font-family: monospace;">MAKE Version <span style="color: #000000;">5.2</span> &nbsp;Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#...
ADO RDD xHarbour
Thanks next post will be corrected. The : syntax works with xHarbour don't know why it doesn't with Harbour. Just comment it.
ADO RDD xHarbour
Antonio, Which version of Fivewin and Harbour are you using?. About this error, please check this post: <!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/harbour-devel/YRmO7CAlpgU">https://groups.google.com/forum/#!topic ... RmO7CAlpgU</a><!-- m --> Thank you.
ADO RDD xHarbour
Lucas, Ok I see it. Im using xHarbour Set 2008. How can we call it correctly?
ADO RDD xHarbour
Done! [code=fw:do7s9ivd]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRecordSet:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> aWAData<span style="color: #000000;">&#91;</span>WA_FIELDRECNO<span style="color: #000000;">&#93;</span> <span style="color: #000000;"...
ADO RDD xHarbour
Antonio, Dbcreate() should take the database from SET ADO DEFAULT DATABASE TO command, so only needs to indicate table name, as current dbcreate() from DBFCDX. So, I would plan dbcreate() as follows. To keep compatibility with DBFCDX, fist parameter should be table name. Also, if you want, you can indicate separ...
ADO RDD xHarbour
Antonio, [quote="AHF":2uro70p3]Im using xHarbour Set 2008.[/quote:2uro70p3] A version 7 years old! Time to update! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
ADO RDD xHarbour
Antonio, [quote="AHF":j40ycfm0]But what do these functions return? The first Field expression and 2nd cfor expression or the eval result ?[/quote:j40ycfm0] As an example: [code=fw:j40ycfm0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff...
ADO RDD xHarbour
Enrico, [code=fw:3ngjjgwt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> UPPER<span style="color: #000000;">&#40;</span> FIELD -> <span style="color: #0000ff;">name</span> <span style="color: #000000;">&#41;</span> <span styl...
ADO RDD xHarbour
Antonio, And how we define such indexes on the commands fro ADORDD. Thanks.
ADO RDD xHarbour
Antonio, this would mean to review all my code and I can't afford it. EMG
ADO RDD xHarbour
[quote="lucasdebeltran":3tofgg7z]Antonio, And how we define such indexes on the commands fro ADORDD. Thanks.[/quote:3tofgg7z] Lucas, Replace it in every place such as: [code=fw:3tofgg7z]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span> RDDNAME<span style="color...
ADO RDD xHarbour
[quote="lucasdebeltran":1bzwckbt]Antonio, Dbcreate() should take the database from SET ADO DEFAULT DATABASE TO command, so only needs to indicate table name, as current dbcreate() from DBFCDX. So, I would plan dbcreate() as follows. To keep compatibility with DBFCDX, fist parameter should be table name. Also, if...
ADO RDD xHarbour
Antonio, First trials on real world went very well. Trials will continue during this week. Still didn't change one line of code in the app. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> The only problem found its concerning performance of DBEVAL that translates t...
ADO RDD xHarbour
Antonio, [quote="AHF":17c8ct5h]First trials on real world went very well. Trials will continue during this week. Still didn't change one line of code in the app. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [/quote:17c8ct5h] Can we use something like this? [code=...
ADO RDD xHarbour
[quote="Enrico Maria Giordano":31n06l2w]Antonio, [quote="AHF":31n06l2w]First trials on real world went very well. Trials will continue during this week. Still didn't change one line of code in the app. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [/quote:31n06l2w] ...
ADO RDD xHarbour
Antonio, [quote="AHF":105xwjeh]As long as its evaluated before send it to adordd I would say yes.[/quote:105xwjeh] No, they can't be evaluated in advance. So ADORDD is of no use for me. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
ADO RDD xHarbour
Enrico, I regret <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Cant you work also with ADS? Cant you somehow translated to a SQL SELECT ?
ADO RDD xHarbour
Antonio, No, to all your questions. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
ADO RDD xHarbour
Antonio, Have you been able to fix the APPEND bug?. Thank you.
ADO RDD xHarbour
Lucas, Yes. Ill try to post new version during today.
ADO RDD xHarbour
[quote="Enrico Maria Giordano":31nni8ag]Antonio, No, to all your questions. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG[/quote:31nni8ag] Enrico, Can it work like this? index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )
ADO RDD xHarbour
Antonio, Thank you. Please ensure it works fine by deleting [i:14hzh2be]previously[/i:14hzh2be] the database, and next create the database and its tables. Also, I guess LOCATE FOR now works as DBFCDX: [code=fw:14hzh2be]<div class="fw" id="{CB}" style="font-family: monospace;">LOCATE <span style="color: #00C800;">FOR...
ADO RDD xHarbour
Antonio, [quote="AHF":30xx1vz6]Can it work like this? index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )[/quote:30xx1vz6] No, as "myparams" can be a field name. It has to be completely dynamic. EMG
ADO RDD xHarbour
[quote="Enrico Maria Giordano":2truptw1]Antonio, [quote="AHF":2truptw1]Can it work like this? index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )[/quote:2truptw1] No, as "myparams" can be a field name. It has to be completely dynamic. EMG[/quote:2truptw1] Enrico, But what do these functions re...
ADO RDD xHarbour
Antonio, No, sorry, I ment about SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO commands for such indexes. Thank you.
ADO RDD xHarbour
[quote="lucasdebeltran":1x78evut]Antonio, No, sorry, I ment about SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO commands for such indexes. Thank you.[/quote:1x78evut] Lucas, I didnt tried I dont have such case.
ADO RDD xHarbour
Antonio, Im having a problem with APPEND FROM and COPY TO due to the fact that the scope info array never delivers cForExp and cWhileExp only the code blocks! This disable us to construct the INSERT INTO with WHERE clause. Is there any way to get these as literal expressions?
ADO RDD xHarbour
Antonio, I mean, for Enrico´s indexes if you could clarify what SET ADO TABLES INDEX LIST TO ... and SET ADODBF TABLES INDEX LIST TO ... should be. Their usage is not clear neither in source code nor readme.txt. Thank you.
ADO RDD xHarbour
Lucas, SET ADO TABLES INDEX LIST TO = indexes without of any clipper like expression only to be used by SQL SET ADODBF TABLES INDEX LIST TO = indexes with the clipper like expressions needed by the app for its evaluations. When we use &(indexkey(0)) we cant evaluate a index expression in ADO TABLES "name+dDate+nValu...
ADO RDD xHarbour
Antonio, Thank you. Have you checked out arrayrdd source code?.
ADO RDD xHarbour
Lucas, [quote:240f19js]Have you checked out arrayrdd source code?.[/quote:240f19js] Yes but find nothing concerning append or copy.
ADO RDD xHarbour
Completed version adordd at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->
ADO RDD xHarbour
Antonio, How can I get the complete file name of an open area? I need this to COPY TO.
ADO RDD xHarbour
[code=fw:6f8cw1d9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dbinfo.ch"</span><br />dbInfo<span style="color: #000000;">&#40;</span>DBI_FULLPATH<span style="color: #000000;">&#41;</span></div>[/code:6f8cw1d9]
ADO RDD xHarbour
Of course! Thanks.
ADO RDD xHarbour
Im facing the following problem: When we use Date() to place in a date field should it be Date() or Sql Now() ? If there are several workstations in different time zones and if the field date corresponds for ex. to an order number to have last order number with the last date this might fail. On other hand working w...
ADO RDD xHarbour
New version adordd <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> Check readme
ADO RDD xHarbour
Antonio, in adordd.prg you use often: [code=fw:2x9njag2]<div class="fw" id="{CB}" style="font-family: monospace;">ALLTRIM<span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>nRecord,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000...
ADO RDD xHarbour
[quote:1spwvvn6] Code: ALLTRIM(STR(nRecord,0)) This code produces a error! STR with len 0 is not allowed? [/quote:1spwvvn6] You are absolutely right! The strange its that here with xHarbour Set 2008 this is accepted. No error! Corrected anyway! The length should be 10,0 [quote:1spwvvn6] In some cases the parameter...
ADO RDD xHarbour
Antonio, in the command SET ADO LOCK CONTROL SHAREPATH TO cPath RDD TO "DBFCDX" you sets the RDD for tlocks.dbf. In the code of adordd.prg should the extension from the indexfile not hardcoded ("CDX") as if i use another RDD the extension is another one! This hardcoded "CDX" are present on some places! Little correcti...
ADO RDD xHarbour
byte-one, Ill change it to IndexExt() and TableExt() [quote:1rydea7s]Little correction: The right text in STATIC FUNCTION ADO_RELEVAL( nWA, aRelInfo ) is "allowed"[/quote:1rydea7s] Sorry Im not getting it. If you want to test it simply place SET RELATION TO or not if you want try it browse fields from 2 areas to se...
ADO RDD xHarbour
Antonio, Can you please post last version?. In that version, dbcreate takes default database name indicated in SET ADO DEFAULT DATABASE TO command?. Thank you.
ADO RDD xHarbour
Lucas, I think last version posted already does that. Please try it and inform. May be you can help me. Im still with a problems with dates in MYSQL. 1) Edit a date field and place any date ok. 2) Delete that date and leave it blank date ok 3) Edit again and place a new date ok bu if edit iit again and keep the ...
ADO RDD xHarbour
Antonio, It´s not working: After creating a new table: Error description: (DOS Error 2) DBFCDX/1003 Open error: C:\ADORDD2015\TLOCKS.CDX Stack Calls =========== Called from: => ORDLISTADD( 0 ) Called from: ../../../rddord.prg => DBSETINDEX( 0 ) Called from: test.prg => ADO_GETUNLOCK( 2776 ) Also, Ap...
ADO RDD xHarbour
Lucas , What version are you using?
ADO RDD xHarbour
Antonio, "AdoRdd Version 1.150515/2"
ADO RDD xHarbour
Lucas, Error lines dont match that version. Can you post lines here? Tlocks file does not exist? Was not created?
ADO RDD xHarbour
Hello, Please, try this sample: [code=fw:1y1q83ot]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"adordd<span st...
ADO RDD xHarbour
Antonio, Also indexes with conditions do not work, here LUCAS2: SET ADODBF TABLES INDEX LIST TO { { "TABLE1", {"TEST1", "FIRST"} ,; {"TEST2", "LAST"} ,; {"TEST3", "AGE"} },; {"LUCAS", {...
ADO RDD xHarbour
Lucas, Your trial its working ok! Please note as in Harbour before ORDSETFOCUS() you need to SET INDEX TO if SET AUTO OPEN not defined. Appends are done ok. Tlocks its created ok.
ADO RDD xHarbour
Lucas, Im not working with xBrowse so I didnt try with it. Is the problem with xbrowse? Does browse works ok?
ADO RDD xHarbour
Lucas, Its working ok. Correct syntax: [code=fw:1k96a21p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;SET ADODBF TABLES <span style="color: #0000ff;">INDEX</span> LIST <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</sp...
ADO RDD xHarbour
Antonio, Xbrowse seems to be working fine. I delete tlocks and it seems to be working now. But indexes with conditions no: [code=fw:3vbl535g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; SET ADO TABLES <span style="color: #0000ff;">INDEX</span> LIST <span style="color: #0000ff;">TO</s...
ADO RDD xHarbour
Lucas, Place in adordd at line 2231 MSGINFO(CSQL) is teh select correct?
ADO RDD xHarbour
In wich function?. I had to remove some of your starting code at adordd.prg so as to compile with Harbour.
ADO RDD xHarbour
Lucas, Index condition its working Lucas table its empty I try it with: {"TEST3", "AGE","WHERE AGE = 32"} } Please place this function in your trials to check rdd status. [code=fw:2voeyzei]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> rddreport<span...
ADO RDD xHarbour
Lucas, [quote:319bs5u7] May be you can help me. Im still with a problems with dates in MYSQL. 1) Edit a date field and place any date ok. 2) Delete that date and leave it blank date ok 3) Edit again and place a new date ok bu if edit iit again and keep the date blank error! I try with adoshowerror but nothing only...
ADO RDD xHarbour
Antonio, Where are you putting this? {"TEST3", "AGE","WHERE AGE = 32"} } In SET ADO TABLES or in SET ADODBF TABLES?. As long as I can´t use adordd in a full working application, I can´t test dates behaviour.
ADO RDD xHarbour
Lucas, [quote:j4ig4go9]Where are you putting this? {"TEST3", "AGE","WHERE AGE = 32"} } In SET ADO TABLES or in SET ADODBF TABLES?. [/quote:j4ig4go9] In SET ADO TABLES the sql expressions never clipper expression In SET ADODBF TABLES only clipper expressions. In conditions please don't place FOR or WHILE keyword but...
ADO RDD xHarbour
Antonio, It´s not working: SET ADO TABLES INDEX LIST TO {{ "TABLE1", {"TEST1", "FIRST"} ,; {"TEST2", "LAST"} ,; {"TEST3", "AGE"} },; {"LUCAS", {"LUCAS1", "NOMBRE"} ,; ...
ADO RDD xHarbour
[quote:34dn17c8] 1: => LUCAS NomeRDD: ADORDD ============================== RecNo RecCount BOF EOF 2 3 .F. .F. Índices em uso TagName NOMBRE LUCAS1 NOMBRE ...
ADO RDD xHarbour
Lucas, Try it like this: //sql expressions only SET ADO TABLES INDEX LIST TO {{ "TABLE1", {"TEST1", "FIRST"} ,; {"TEST2", "LAST"} ,; {"TEST3", "AGE"} },; {"LUCAS", {"LUCAS1", "NOMBRE"} ,; {"LUCAS2", "NOMBRE", "WHERE NOMBRE = 'AGAMENON'"},; {"LUCAS3", "NOMBRE","WHERE ACTIVO = TRUE" } } } //Maybe its not TRUE but 1 I ...
ADO RDD xHarbour
Antonio, I guessed that conditions and functions went only to SET ADODBF, as to keep Clipper compatibility. Now I realze I have to indicate the condition or functions in both cases -SET ADO TABLES and SET ADODBF TABLES-, so in order to be clear, why use only one way?. I also talked with other users and they agree on...
ADO RDD xHarbour
Lucas, [quote:8tg2n5i6]Now I realze I have to indicate the condition or functions in both cases -SET ADO TABLES and SET ADODBF TABLES-, so in order to be clear, why use only one way?. I also talked with other users and they agree on considering such point very confusing.[/quote:8tg2n5i6] Dont understand what you mea...
ADO RDD xHarbour
Antonio, For and while and all Index parameters should be indicated either one way, Clipper or sql format.
ADO RDD xHarbour
Lucas, [quote:g4t35176]I guessed that conditions and functions went only to SET ADODBF, as to keep Clipper compatibility.[/quote:g4t35176] Please note that functions need to be different. Ex SQL UCASE = CLIPPER UPPER SQL LCASE = CLIPPER LOWER So we must enter each corresponding function into SET ADO or SET ADODBF...
ADO RDD xHarbour
Lucas, Dates did you try it with mysql?
ADO RDD xHarbour
Antonio, Not yet, but I remember that there were some issues with dates. I have to check. Also, about updating xHarbour, unless there is a pcode change, which I doubt, you will be able to keep your Fivewin version, which I guess is what you want.
ADO RDD xHarbour
Lucas, With MySql the date field problem is: If the new value its a empty date and we do: [code=fw:1w5zg8kh]<div class="fw" id="{CB}" style="font-family: monospace;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><span style="color: #00C800;">IF</span> ADO_FIELDSTRUCT<span style="color: #000000;">&#40;</span> oReco...
ADO RDD xHarbour
Antonio, I have found those big errors so far: DbCommitAll() produces an error: [img:72nfsmv1]http&#58;//i62&#46;tinypic&#46;com/a3fbit&#46;png[/img:72nfsmv1] This filter produces a GPF and a hb_out.log: SET FILTER TO alltrim(AUXILIAR->RELACION) == alltrim(cValToChar( cCodigo )) I also have minor things for other...
ADO RDD xHarbour
Lucas, Can you send me by mail Tdatarow and trecset? Do you mean then update with dbcommit or skip (ado already does this) as in clipper? OK Ill tested it with access. Dbcreate its being done checking file exist. As for FILE and to keep app code compatibility the ideal was to alter the file function itself to wo...
ADO RDD xHarbour
Lucas, This seems not serious. Dbcomittall() call ado_flush() that calls :updated() I dont know why it errors like that. Here with Mysql sometimes gives also error NOT Supported. Probably because there aren't any pending updates? My idea its to enclose it in TRY CATCH. with catch doing nothing. In all my trials with...
ADO RDD xHarbour
Antonio, With set filter to, I changed cvaltochar to str, and I still have the gpf. Maybe the conversión into SQL is not good: [img:8now11gj]http&#58;//i60&#46;tinypic&#46;com/2dqiv7&#46;png[/img:8now11gj] Also, in dbseek -STATIC FUNCTION ADOSEEKSQLFIND()-, there is an error with # and numeric fields. You call to: ...
ADO RDD xHarbour
Lucas, Sorry I forgot that Filter2sql definitely does not work with ACCESS. I place filter2sql in adordd but still only works with oledb for ADS it misses other DBs syntax. If you want please try :FILTER with SQLTRANSLATE instead Filters will be done within coming weeks. About seek this was left overs from trials p...
ADO RDD xHarbour
Antonio, Append blank and error with dates are related. Tdatarow does it in a different way, it updates at once all fields. Try to comment out oRecordSet:Update() at ADO_PUTVALUE( nWA, nField, xValue ). For filtering, maybe in tRecSet class there is a method. Remember, once you work with Acess you will be able to...
ADO RDD xHarbour
Antonio, This could be the fix for FUNCTION ADO_PUTVALUE( nWA, nField, xValue ): [code=fw:18c6nevb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//oRecordSet:Fields( nField - 1 ):Value := xValue</span><br />&nbsp; &nbsp; &nbsp; ...
ADO RDD xHarbour
Lucas, [quote:2hmj5ugh]oRecordSet:Update( nField - 1, IfNil( xValue, AdoNull() ) )[/quote:2hmj5ugh] Im going to try it. The date errors only happens (MySql) when you edit a empty date and save the same empty date. Thats why we didnt have found it before although the app makes lot of transactions but never in this cir...
ADO RDD xHarbour
Antonio, What is your email to send the database?. The database has some fields with 80 or more chars. About scopes, try to do SET SCOPE TO ID = 10
ADO RDD xHarbour
Lucas, I tried your code last post. Result is the same if I edit a field date in browse() with an empty date and make enter with empty date errors. If I do the same but enter a date ok If I do the same and clean that date ok disal.antonio.ferreira at gmail.com Ill try scopes asap
ADO RDD xHarbour
Lucas, [quote:24j14zwf]The database has some fields with 80 or more chars.[/quote:24j14zwf] Ours some fields with 200 chars. Can you check exact recsize()
ADO RDD xHarbour
Yes, returns 6763. Thanks.
ADO RDD xHarbour
Lucas, Thanks Ill try it. About dates the only way it works with access and mysql is placing in ADO_PUTVALUE : [code=fw:84c582us]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span> ADO_FIELDSTRUCT<span style="color: #000000;">&#40;</span> oRecordSet, nField<span st...
ADO RDD xHarbour
Lucas, I think dates problem its solved. (Access Mysql oledb ADS) Ive found out that when the field date is empty the fields:value type its "U" and can not be accessed in this state. When we entered a field date empty and issue update with nothing it errors saying MEMBERNOTFOUND Ill end you new version during today.
ADO RDD xHarbour
Antonio, SET SCOPE fix seems to be: STATIC FUNCTION ADOSCOPE(nWA,aWAdata, oRecordSet, aOrderInfo,nIndex) IF LEN(ALLTRIM( cvaltochar(aWAData[ WA_SCOPETOP ][y]) + cvaltochar(aWAData[ WA_SCOPEBOT ][y])) ) > 0 Scopetop and ScopeBot can be a numeric. Fields names greater that 8 chars fail. Also, in DbCre...
ADO RDD xHarbour
Lucas, Im looking at SET SCOPE and SET FILTER. [quote:3vb7s4yf]Fields names greater that 8 chars fail.[/quote:3vb7s4yf] Where at scopes? Filedname() returns the :field:name Can you try fieldname() function?
ADO RDD xHarbour
Lucas, [quote:1shju79x]Also, in DbCreate() I will add the following feature. In ADOSTRUCTTOSQL( aWAData,aStruct ,lAddAutoInc) I will check if aStruct has the default ID Autoincrement field, usually called HBRECNO. If there is no autoincrement "+" field, I will add to the array: aAdd( aStruct, { "HBRECNO", "+", 15, 0 ...
ADO RDD xHarbour
Antonio, [code=fw:1aqshgke]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ADOSTRUCTTOSQL<span style="color: #000000;">&#40;</span> aWAData,aStruct ,lAddAutoInc<span style="color: #000000;">&#41;</span><br /...
ADO RDD xHarbour
Lucas, Thanks. About fieldname we are limited to 10 chars long not 8 This its (x)Harbour limitation. adordd simply returns :field:name but then usrrdd cuts it to 10 chars long. For us no problem is it for you? Although this is a huge limitation in SQL. We need Antonio to help us solve this limitation.
ADO RDD xHarbour
Antonio, aWAData[ WA_SCOPETOP ][y] and aWAData[ WA_SCOPEBOT ][y] seems that are SCOPE´s values. You are issuing LEN(ALLTRIM( ..., but those Scope values could be a number, or a date, so that´s why it fails.
ADO RDD xHarbour
Lucas, We can use [code=fw:2u04vt8n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span>aWAData<span style="color: #000000;">&#91;</span> WA_SCOPETOP <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#...
ADO RDD xHarbour
Lucas, There another bug in adoscope. Please replace with this code: (note the 2 commented aadd) [code=fw:lglgkv8g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<span style="color: #00C800;">CASE</span> nIndex == DBOI_SCOPETOP<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800...
ADO RDD xHarbour
Lucas, Concerning dbcreate I think the default behavior of (x)Harbour is to override a table with the same name. I think we should keep things as they are. I think our app is expecting this standard behavior. User can test hb_adoRddExistsTable( oCn, cTable, cIndex ) before creating new table Confirm?
ADO RDD xHarbour
Antonio, As filters are not ready i cant work with the full app.
ADO RDD xHarbour
Lucas, Ok Im looking now at filter and it seems easily adapted. All other points are already corrected.
ADO RDD xHarbour
Antonio, I also sent to your email a sample to test the Record is too large error. Thanks.