messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2015-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, i found in the meanwhile that when i use quit the massage is showing, but when i close the main window (FIVEWIN) the quit is not called!",
"time": "11:49",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\nIm trying with \n\n ACTIVATE WINDOW oWnd VALID ;\n FimPrograma(ownd,oTimer)\n\nThe FimPrograma does not quit and even so the message is shown only ADO_EXIT but without any procs.",
"time": "12:10",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\nIf you need you can call directly ADODB_CLOSE() in order to close all tables, sets and connection thats what ADO_EXIT does.\n\nI though ADO_EXIT would be called in any circumstance besides errors.",
"time": "12:14",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, for now i insert ADODB_CLOSE() in the valid from my main-window.\n\nAnother points to discuss i found on transfer my app to adordd is:\n1.) If i fill the index-array the order cannot changing with SET INDEX TO .... In some cases this is required if i will not change the code.\n2.) Opening the same DBF with 2 or more USE and different aliases is in other RDD possible. In ADORDD?",
"time": "14:03",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\n[quote:3di2shte]\n1.) If i fill the index-array the order cannot changing with SET INDEX TO .... In some cases this is required if i will not change the code.\n[/quote:3di2shte]\nSorry I cant understand what you mean. \nSET INDEX TO its translated by the preprocessor to ordlistadd() as in clipper adordd SET ORDER to the 1st index in the SET INDEX TO.\n\nIs it not working like that?\n\nCan you post an example?\n\n[quote:3di2shte]\n2.) Opening the same DBF with 2 or more USE and different aliases is in other RDD possible. In ADORDD?\n[/quote:3di2shte]\nIt works like any other rdd you everything continues the same.\nMy apps work just like that and its 100% ok.",
"time": "14:43",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\nSET INDEX TO index1,index2,... or USE....INDEX index1,index2,... describes only the order from indexfiles. As in ADORDD no files exist i must use before INDEX ON... (in a clipper app only once to produce the indexfile) or the command SET ADODBF TABLES INDEX LIST TO ....\nIf i use this ADODBF TABLES INDEX LIST TO .... then the order from the indexes always like this array. [b:2u3yg6o2]The SET INDEX TO... or USE..INDEX TO... are not respected![/b:2u3yg6o2]\nYou write in a message before that this array are always on first ranking and after this the indexes with INDEX ON... added.",
"time": "10:30",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\nUSE cTable\nSET INDEX TO index1,index2,index3\n\nOrder focus should be index1. If SET AUTOPEN ON the order focus will be on the first index in the SET ADODBF..\n\nYou should only use INDEX ON for temporary indexes as permanent ones should be indicated on SET ADODBF INDEX...\n\nIf you use INDEX ON... TO cFile the cFile name must be present the min 4 first letters in ADO SET TEMPORARY NAMES... otherwise will never be opened.\n\nYou can use this to check the status of tables,aliases, locks, relations and indexes per area.\n\n[code=fw:3uerxw35]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> expalias<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> cerrorlog := <span style=\"color: #ff0000;\">\"\"</span>,n,j,ntarget,x<br /><br /> <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">255</span><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cErrorLog += CRLF + Str<span style=\"color: #000000;\">(</span> n, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\": \"</span> + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == n,<span style=\"color: #ff0000;\">\"=> \"</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">)</span> + ;<br /> PadR<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">)</span> + Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"NomeRDD: \"</span> + ;<br /> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> RddName<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" ==============================\"</span> + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" RecNo RecCount BOF EOF\"</span> + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" \"</span> + Transform<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\"99999\"</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" \"</span> + Transform<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> RecCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\"99999\"</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" \"</span> + cValToChar<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> BoF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" \"</span> + cValToChar<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> EoF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + CRLF + CRLF<br /> cErrorLog += <span style=\"color: #ff0000;\">\" Used indexes \"</span> + Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">23</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"TagName\"</span> + CRLF<br /> <span style=\"color: #00C800;\">for</span> j = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">15</span><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> IndexKey<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> IndexOrd<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == j, <span style=\"color: #ff0000;\">\"=> \"</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">)</span> + ;<br /> PadR<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> IndexKey<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">35</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdName<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + ;<br /> CRLF<br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> cErrorLog += CRLF + <span style=\"color: #ff0000;\">\" Relações em uso \"</span> + CRLF<br /> <span style=\"color: #00C800;\">for</span> j = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">8</span><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nTarget := <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbRSelect<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> + Str<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\": \"</span> + ;<br /> <span style=\"color: #ff0000;\">\"TO \"</span> + <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbRelation<span style=\"color: #000000;\">(</span> j <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + ;<br /> <span style=\"color: #ff0000;\">\" INTO \"</span> + <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span> nTarget <span style=\"color: #000000;\">)</span> + CRLF<br /> <span style=\"color: #B900B9;\">// uValue = ( Alias( n ) )->( DbRelation( j ) )</span><br /> <span style=\"color: #B900B9;\">// cErrorLog += cValToChar( &( uValue ) ) + CRLF</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> x := <span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">alias</span><span style=\"color: #000000;\">(</span>n<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>dbrlocklist<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"Locked records \"</span>+CRLF<br /> <span style=\"color: #00C800;\">for</span> j = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>x<span style=\"color: #000000;\">)</span><br /> cErrorLog += Space<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"Recno \"</span>+str<span style=\"color: #000000;\">(</span>x<span style=\"color: #000000;\">[</span>j<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span>+CRLF<br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> SHOWMEMO<span style=\"color: #000000;\">(</span>cerrorlog<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> .t.<br /><br /> </div>[/code:3uerxw35]\n\nCan you post a small trial and the that trial table index array in SET ADODBF... ?",
"time": "10:56",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\n[quote:2fhf9z7j]You write in a message before that this array are always on first ranking and after this the indexes with INDEX ON... added.[/quote:2fhf9z7j]\n\nJust lie any other rdd INDEX ON without ADDITIVE clause will clear all the orders prior to creation.",
"time": "10:58",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\nIs the problem solved ?\n\nIm looking into indexes with SQLite right now so if you need something please let me know.",
"time": "15:58",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, i test now my app and have wrote a little testprogram. I send you tomorrow the results!\nGreetings from Austria!",
"time": "16:50",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, after testing i can say: All is right!\n\nSuggestions:\nFor the local (.ctl, files with text \"nada\") files you should also set a path ex.: <app>\\adordd or the temp from windows as we should not write into the app-path (and/or a SET order)!\nThe text \"nada\" should more international.\nSET ADO INDEX UDFS TO should contain for standard SUBS and SUBSTR.",
"time": "10:45",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\n[quote:2nah3spw]Antonio, after testing i can say: All is right![/quote:2nah3spw]\n\nGreat !\n\n[quote:2nah3spw]For the local (.ctl, files with text \"nada\") files you should also set a path ex.: <app>\\adordd or the temp from windows as we should not write into the app-path (and/or a SET order)![/quote:2nah3spw]\n\nThese files are only created when SET ADO LOCK ON and at the path of SET ADO LOCK CONTROL SHAREPATH TO so you can choose whatever path you want.\nThese files are only created to simulate USE EXCLUSIVE / SHARED as they are opened with FOPEN( (cFile), IF(lExclusive, FO_EXCLUSIVE, FO_DENYNONE ) )\n\n[quote:2nah3spw]The text \"nada\" should more international.[/quote:2nah3spw]\n\nNada means nothing I think its international.\n\n[quote:2nah3spw]SET ADO INDEX UDFS TO should contain for standard SUBS and SUBSTR.[/quote:2nah3spw]\n\nYou can place here any functions you want. \nIn principle should be present here all ones that are not only to convert data types, such as SUBSTR for ex.\nThe ones that alter the value, length of a field must be present here.",
"time": "11:08",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio.\n[quote:19fp9x7m]In principle should be present here all ones that are not only to convert data types, such as SUBSTR for ex.\nThe ones that alter the value, length of a field must be present here.[/quote:19fp9x7m]\nAlso upper() and so on should be in this list?\nAnd whats ex. should not to be in list?",
"time": "12:35",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\nWe normally use index functions to convert all index keys to the same data type.\nINDEX ON STR(NUM)+DTOS(DATE)+CVALTCHAR(LOGIC)\n\nThese kind of functions dont alter the data itself but only the type in order that can be evaluated without errors.\nThese kind of functions you dont need and should not use them in ADO UDF.\n\nBut for instances if we do instead\nINDEX ON STR(NUM)+DTOS(DATE)+IF( LOGIC , \"yes\", \"no\")\n\nThen we need to include in ADO UDF - IF to tell adordd that this index its a different one.\nThe same with UPPER, SUBSTR, ==, PAD, etc. \n\nBut you should only place them in ADO UDF if in fact they are used in your app in index expressions otherwise you dont need to take the time to do it.\n\nBesides these you need there all true User Defined Functions.\n\nPlease note that if you place DTOS in ADO UDF all indexes with that function will be created in an array and after sorted. This array of bookmarks its then set in ado :filter method.\nThis is expensive to create and maintained in big tables and should be only used when truly needed.\n\nIs this clear to you?",
"time": "13:25",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-20",
"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\nAPPEND with SQLITE, FIREBIRD, POSTGRE and ORACLE with index with UDF or condition was\nadding the same bookmark twice.\n\nADO_REQUERY could fall into recursive calls after append new record using engines \nSqlite, FireBird Postgre and Oracle.\n\nDBGOTO was giving error if the record was not within INDEX with UDF or condition.\n\n\nChanges:\n\nhb_AdoRddFile( cFile ) Check for index file in the adodbf index list... and support for Sqlite, Firebird, Oracle.",
"time": "13:58",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-26",
"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\n1) FIELDNAME was not returning upper fieldname in case of db engine PostGre, Oracle\n\n2) Some upper case conversions to take care of lower case fields used by PostGre and Oracle.\n\n3) Reserved keywords used in fields taken care with PostGre and Oracle.\n\n4) SET TRESHOLD was not finding aMask if used table and SQL were with different case. Now all upper case.\n\n5) Pre opening of recorsets optimized and cached for different where clauses on same table.\nIf the table its below the SET THRESHOLD and its already opened in another work area the set its not created again but cloned from that work area.\nIf during app run time a table passes the SET THRESHOLD value its cached next time is opened.\n\nTested engines:\n\nACCESS\nADS\nDBASE\nFIREBIRD\nFOXPRO\nMS SQL\nMYSQL\nPOSTGRE\nSQLITE\n\nStill not tested but should work ok:\n\nANYWHERE\nINFORMIX\nMARIADB\nORACLE",
"time": "18:47",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, line 6233 lReval -> lRetval",
"time": "10:28",
"topic": "ADO RDD xHarbour",
"username": "byte-one"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-11-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther,\n\nThanks Done!",
"time": "10:34",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-12-07",
"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\nNew:\n\n1) SET ADODBF INDEX LIST FIELDTYPE NUMBER TO {{ \"Table\",{ \"numfiled\", nlen },{\"numfield\", nLen } } }\nadordd need a precise indication of the len of numeric fields used in index expressions. \nThis is only needed for numeric fields where the SQL type its without field len definition such as:\nAUTOINC, MONEY, DOUBLE, INT, SMALLINT, etc.\n\nCorrected Bugs:\n\n1) ADOBEGINTRANS( nWA ) : without work are it starts a transaction in default adordd connection otherwise\nit starts in the connection of the current work area.\n\n2) ADOROLLBACKTRANS( nWA ) : without any work area it rolls back all transactions in all open connections\notherwise it rolls back transaction in same connection as that work area.\n\n3) ado_create was adding an extra position in field len of numeric fields\nnow ADO_FIELDSTRUCT takes that position returning the correct len of a field type \"N\"\nThis could lead to side effects in INDEXKEY where the numeric field was part of the expression.\nNo tables structure corrections are necessary.\n\n4) ADPSEUDOSEEK works now ok with fields type \"T\"\n\n5) ADODUFINDEX if result of the index expression its numeric its considered as it was a UDF expression\nbecause we cant extract field len to build a find, filter or query expression because the eval result \nits the sum of all the numeric fields in the expression.\n\n6) ORDKEYGOTO was not full implemented.",
"time": "13:56",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2015-12-08",
"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 new Bugs due to changes previous build:\n\n1) ADO_SQLSTRU with firebird numeric fields precision fieldlen was wrong\n\n2) ADO_FIELDSTRUCT integers doesnt take any extra position. \n\n3) ADO_PUTVALUE trim spaces to check data width error with numbers.",
"time": "16:14",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-03-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New AdoRdd Version 1.070317 at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nImprovements and corrected bugs:\n\nADO_ORDCREATE after creating index wasnt opening it.\n\nADO_SEEK key with multiple fields with softseek on was going to eof instead of last key.\n\nADOFILE if connection not valid returns now .F. instead of HB_FAILURE.\n\nADOOPENCONNECT if engine its not supported or wrongly set alerts the user.\n\nADOBEGINTRANS if workarea not specified opens a transactions for each opened connection\nADOCOMMITTRANS and ADOROLLBACKTRANS the same as ADOBEGINTRANS\n\nNew function ADONESTEDTRANS( nWA ) returns nr of nested transactions\n\nNEW ERROR CODE 10600 - connection not available cant find transactions\n\nADO_ALREADYOPEN Test if the open recordset has same Sql query statement.\n\nADORECCOUNT Table name was not being converted to get fieldrecno if any defined\nfor that table always returned that default one.\n\nADOPREOPENTHRESHOLD Faster counting records. Doesn't cache any tables with WHERE clause.\n\nAll ADO cursors changed in the code from adopendynamic to adopenstatic, although it always\nstarted as adopenstatic.\n\n\nNew features:\n\nNew option PORT in SET ADO DEFAULT DATABASE ...\n\nADO_ORDINFO ordwildseek implemented\n\nMultibag orders support with new SET:\nSET ADODBF MULTIBAG INDEX LIST TO { { \"INDEX NAME\", {TAGORDER 1\",\"TAGORDER2\"} } }\nThis allows multibag index file support exactly the same as any other DBf rdd.\nATTENTION\nNow when SET AUTOOPEN ON doesn't open all index files automatically in SET ADODBF INDEX LIST instead\nonly opens the INDEX NAME present in SET ADODBF MULTIBAG INDEX LIST TO that match the table name.\n\nFaster opening recordsets:\n\nSET RECORDSET OPEN WHERE CLAUSE TO { { \"TABLENAME\", \"SQL WHERE EXPRESSION\" } }\n\nADOWHERECLAUSE ADORDD function allowing us to change the recordset WHERE clause on the fly keeping all\nworkarea information as Filters, Scopes, Indexes, etc.\n\nEx\n\nSET RECORDSET OPEN WHERE CLAUSE TO { { \"table\", \"FIELDANEMYEAR = '2017'\" } }\n\nUSE table\nBROWSE() //only records that meet \"where\" clause\n//we want to see some historic data\ncOldQry := ADOWHERECLAUSE( SELECT(), \"FIELDANEMYEAR = '2012'\" )\nBROWSE()\n//Get back to current year\nADOWHERECLAUSE( SELECT(), cOldQry )\nBROWSE()",
"time": "22:41",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-03-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New AdoRdd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->",
"time": "10:47",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New AdoRdd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->",
"time": "09:11",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-04-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New AdoRdd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nPerformance enhancement opening tables.\n\nSET RECORDSET OPEN WHERE CLAUSE TO {{\"MYTABLE\",\"HBRECNO < 51000\" },;\n {\"MYTABLE2\",\"HBRECNO BETWEEN 1 AND 50000\" }}\n\nThis SET together ADOWHERECLAUSE( nWa, cNewSql ) enable us to open tables using the set of data we really need without altering any code logic.\nThis SET is used as default query to open for each table present here.\n\nThe ADOWHERECLAUSE( nWa, cNewSql ) can be placed in strategic places within our app code to change or to avoid to bring all the records to the set. \nTables till 100K dont need to worry. \nUsually its slower to build the set than to read data from the database.\nRecordset s with more than 100 columns will start to take long time to build.\nI´ve seen recordset s with 800 columns! This takes long time even with a couple of thousands of records!\n\nTables with a couple of millions of records if we dont use any WHERE clause will exhaust memory very fast or we even dont have enough memory to run our app.\n\n[code=fw:3qcom0m3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />....<br /><span style=\"color: #B900B9;\">//Ex</span><br />USE <span style=\"color: #ff0000;\">\"MYTABLE\"</span> <span style=\"color: #B900B9;\">// 10.000.000 RECS with SET RECORDSET OPEN WHERE CLAUSE TO will load only 51.000 recs</span><br />....<br /><span style=\"color: #B900B9;\">// Here we will need other set of data</span><br /><span style=\"color: #B900B9;\">//we have to be sure that with this new query our app code can run all necessary routines</span><br />nRecno := RECNO<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />cOldSql := ADOWHERECLAUSE<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\"INVOICEDATE > '2016/04/01'\"</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #B900B9;\">//working with the new set</span><br /><span style=\"color: #B900B9;\">//all workarea data, indexes etc continue exactly the same</span><br /><span style=\"color: #B900B9;\">//finish working get back to previous set</span><br />ADOWHERECLAUSE<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, cOldSql <span style=\"color: #000000;\">)</span><br />GO nRecno<br />....<br /> </div>[/code:3qcom0m3]\n\nCaching the tables (recordsets):\n\n[code=fw:3qcom0m3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SET ADO PRE OPEN THRESHOLD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">0</span> MASK <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"MYTABLE\"</span>,<span style=\"color: #ff0000;\">\"MYTABLE2\"</span><span style=\"color: #000000;\">}</span><br /> </div>[/code:3qcom0m3]\n\nThis enable to cache the tables to avoid read the data again every time we open these tables\nwith the same query.\nThis SET uses the queries defined with SET RECORDSET OPEN WHERE CLAUSE TO.\n\nSetting TO 0 adordd will not cache any table based on nr of records.\nIn this case adordd will only load the tables in MASK.\nIn databases with tables of millions of records if we choose to cache tables for ex > 50k records we must have a defined query for those tables otherwise adordd will cache all the records in the table. \nIf there are 10.000k program most probably will crash!\n\nWe need also to pay some attention to MASK to avoid loading tables we dont need.\nSuppose that we have loaded, when we import our data on our database, our tables with paths:\n\nThese will be the table names in the database.\nCURRENTPATH_MYTABLE\nHISTORICOATH_MYTABLE\n\nWith above SET adordd will cache both.\nSo in this case we can do:\n\nSET ADO PRE OPEN THRESHOLD TO 0 MASK {\"CURRENTPATH\\MYTABLE\",\"CURRENTPATH\\MYTABLE2\"}\n\nTo avoid cache for ex other historic tables with same name.\n\nPlease remember that even we dont use this SET every time a table is opened it will be cached.\nAgain if any of those tables have millions of records if we dont have any query to limit the nr of records returned adordd will load all those millions!\n\nATTENTION \nBy default adordd caches all tables with more than 6000 recs when opening it.\nPlease adjust it in adordd to another value of your choice and we should have a query to limit records\nfor the tables with more than 500k.",
"time": "11:40",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New AdoRdd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nImproved speed DBEval\nCache tables and recordsets enhancement",
"time": "09:43",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "New AdoRdd and tryadordd at <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->",
"time": "11:28",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2017-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "My main work now with AdoRdd its database with tables between 5.000 and 10.000.000 records building recordsets between 5.000 and 100.000 records and 70 columns in average.\nThe work its on a 1Gb LAN.\n\nIn the bigger tables if the server has indexes for the WHERE clause its pretty fast < 3 Secs building the recordset.\n\nThe memory consumption gets to max 600Mb. \nI can have > 50 recordset opened at same time.\nWith the cached recordsets memory consumption will not increase.\n\nAdoRdd can cache the recordsets in the beginning of the application with:\n\nSET ADO PRE OPEN THRESHOLD TO\n\nIn this case app waits a little more to start but then all table opening its lightning fast.\nNormally to display a window with > 20 tables its less < 1sec.\n\nIf we choose not to use this SET AdoRdd will use as cache already opened tables.\nThus the second time it will be also very fast.\n\nWith tables of this dimension we absolutely need a default open WHERE clause otherwise application would crawl and crash. use SET RECORDSET OPEN WHERE CLAUSE TO.\nPlease pay attention to these WHERE clauses otherwise you might not be able to see new additions as soon as AdoRdd requery.\n\nPunctuality we might need to reduce the recordset for ex for sum SUM operations.\nThis is where we use:\n\ncOldSql := adowhereclause( Select(), \"where clause\" ) \nSUM ...\nadowhereclause( Select(), cOldSql ) \n\nHope this might help you.",
"time": "12:08",
"topic": "ADO RDD xHarbour",
"username": "AHF"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Rick Lipkin\":18uicnv8]Gemtleman\n\nI have been using ( plain ) ADO ( class and methods ) for many years .. 32 and 64 bits ... Have a look in the samples folder and compile AdoRick.prg .. Uses all the Fivewin code .. xbrowse, panels, folders ... etc.\n\nYou can use ADO to connect to MS Sql Server, MS Access and ( most ) all the other Sql databases as well ... Rao has made the ADO connection syntax with many FiveWin wrappers .. Look in the \\source\\functions\\adofuncs.prg ..\n\nThanks\nRick Lipkin[/quote:18uicnv8]\n\nRick, \n\nIn your experience with mainly viewing large Xbrowse setups with many tags and editing mostly from inside the Xbrowse :\nWould you think that ADO (with the Mr. Rao tools) and FW give a better performance than with DBF files, DBFCDX, TAG and FW ?",
"time": "17:45",
"topic": "ADO RDD xHarbour",
"username": "Marc Venken"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marc,\nDo you also have speed problems on the PC where you saved your DBF files.\nRegards,\nOtto",
"time": "19:38",
"topic": "ADO RDD xHarbour",
"username": "Otto"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Necesito ayuda, cuando estoy usando dos aplicaciones, cuando incluyo una, en la otra aplicación no aparece.",
"time": "14:25",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "¿ Quien no aparece ?",
"time": "15:14",
"topic": "ADO RDD xHarbour",
"username": "hmpaquito"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "no aparece el elemento que agregué en el otro sistema,\nEj: dejo ambos sistemas en la pantalla de registro de grupo con xbrowse, al incluir en un sistema, en el otro si voy a incluir el mismo código porque no actualizo el registro, y en xbrowse tampoco aparece .\nAhora cuando hago un cambio, cambia normal en ambos",
"time": "14:06",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "o estoy usando asi\n\n[code=fw:plwh7zjm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />REQUEST DBFCDX<br />REQUEST ORDKEYNO<br />REQUEST ORDKEYCOUNT<br />REQUEST ORDKEYGOTO<br />REQUEST ADORDD, ADOVERSION, RECSIZE<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> RddRegister<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ADORDD\"</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><br /> RddSetDefault<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ADORDD\"</span><span style=\"color: #000000;\">)</span><br /><br /> SET DATE <span style=\"color: #0000ff;\">TO</span> BRIT <br /> SET CENTURY <span style=\"color: #0000ff;\">ON</span><br /> SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">(</span>DATE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">-50</span><span style=\"color: #000000;\">)</span><br /> SET DELETED <span style=\"color: #0000ff;\">ON</span><br /> SET SOFTSEEK OFF<br /><br /> <span style=\"color: #00C800;\">IF</span> RDDSETDEFAULT<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"ADORDD\"</span><br /><br /> SET ADODBF TABLES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLGRUP\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLGRUP1\"</span>,<span style=\"color: #ff0000;\">\"STRZERO(GRU_COD,3)\"</span><span style=\"color: #000000;\">}</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLGRUP2\"</span>,<span style=\"color: #ff0000;\">\"GRU_DES\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLSGRU\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLSGRU1\"</span>,<span style=\"color: #ff0000;\">\"STRZERO(SGR_COD,3)\"</span><span style=\"color: #000000;\">}</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLSGRU2\"</span>,<span style=\"color: #ff0000;\">\"SGR_DES\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /> SET ADODBF MULTIBAG <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLGRUP\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLGRUP1\"</span>,<span style=\"color: #ff0000;\">\"SLGRUP2\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLSGRU\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLSGRU1\"</span>,<span style=\"color: #ff0000;\">\"SLSGRU2\"</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /> SET ADO TEMPORAY NAMES <span style=\"color: #0000ff;\">INDEX</span> LIST <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TMP\"</span>,<span style=\"color: #ff0000;\">\"TEMP\"</span><span style=\"color: #000000;\">}</span><br /><br /> SET ADO <span style=\"color: #0000ff;\">INDEX</span> UDFS <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</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: #ff0000;\">\"MYFUNC\"</span>,<span style=\"color: #ff0000;\">\"PAD\"</span><span style=\"color: #000000;\">}</span><br /><br /> SET ADODBF <span style=\"color: #0000ff;\">INDEX</span> LIST FIELDTYPE NUMBER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"SLGRUP\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"GRU_COD\"</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">//SET ADO TABLES DECIMAL FIELDS LIST TO {}</span><br /><br /> <span style=\"color: #B900B9;\">//SET ADO TABLES LOGICAL FIELDS LIST TO {};</span><br /><br /> SET ADO <span style=\"color: #00C800;\">DEFAULT</span> RECNO FIELD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"ID\"</span><br /> <span style=\"color: #B900B9;\">//SET ADO FIELDRECNO TABLES LIST TO {{\"SLGRUP\",\"ID\"}} </span><br /> <br /> SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DELETED FIELD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HBDELETE\"</span><br /> <span style=\"color: #B900B9;\">//SET ADO FIELDDELETED TABLES LIST TO {{\"SLGRUP\",\"HBDELETE\"}}</span><br /><br /> SET ADO FORCE LOCK <span style=\"color: #0000ff;\">ON</span><br /> SET ADO LOCK CONTROL SHAREPATH <span style=\"color: #0000ff;\">TO</span> HB_DIRBASE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"TEMP\"</span> RDD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br /> SET ADO <span style=\"color: #00C800;\">DEFAULT</span> DATABASE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"dbfnew\"</span> <span style=\"color: #00C800;\">SERVER</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"localhost\"</span> ENGINE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"MYSQL\"</span> USER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"new\"</span> PASSWORD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"123\"</span><br /> <br /> <span style=\"color: #B900B9;\">// with thsi set the path becomes part of the table name.</span><br /> SET ADO TABLENAME WITH PATH OFF <br /><br /> <span style=\"color: #B900B9;\">// uploaded with one path working now with another</span><br /> SET ADO ROOT PATH <span style=\"color: #0000ff;\">TO</span> HB_DIRBASE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"DADOS\"</span> INSTEAD <span style=\"color: #0000ff;\">OF</span> HB_DIRBASE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> SET ADO CACHESIZE <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">100</span> ASYNC <span style=\"color: #0000ff;\">ON</span> ASYNCNOWAIT <span style=\"color: #0000ff;\">ON</span><br /><br /> SET ADO PRE OPEN THRESHOLD <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">5000</span> <span style=\"color: #B900B9;\">//MASK { \"TABLE\" }</span><br /><br /> SET EXCLUSIVE OFF<br /> SET AUTORDER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">1</span><br /> SET AUTOPEN <span style=\"color: #0000ff;\">ON</span><br /><br /> hb_AdoUpload<span style=\"color: #000000;\">(</span> HB_DIRBASE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"DADOS<span style=\"color: #000000;\">\\\"</span> , \"</span>DBFCDX<span style=\"color: #ff0000;\">\" , \"</span>MYSQL<span style=\"color: #ff0000;\">\", .f. )<br /><br /> ENDIF<br /><br /> USE SLGRUP ALIAS \"</span>SLGRUP<span style=\"color: #ff0000;\">\" VIA \"</span>ADORDD<span style=\"color: #ff0000;\">\" NEW <br /> USE SLSGRU ALIAS \"</span>SLSGRU<span style=\"color: #ff0000;\">\" VIA \"</span>ADORDD<span style=\"color: #ff0000;\">\" NEW<br /><br />RETURN .T.<br /></span></div>[/code:plwh7zjm]",
"time": "15:40",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "A la luz del fuente: <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd/blob/master/adordd.prg\">https://github.com/AHFERREIRA/adordd/bl ... adordd.prg</a><!-- m --> quizás necesites incluir en tu codigo un SKIP 0 (refresh())",
"time": "19:21",
"topic": "ADO RDD xHarbour",
"username": "hmpaquito"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Usé SKIP 0, aun así no actualiza el último registro.\n\nAbro dos aplicaciones y dejo un stop en la pantalla de xbrowse, y en la otra creo un registro nuevo, y no actualiza en la otra que esta parada en xbrowse. La única forma que pude, fue terminar el banco y abrirlo de nuevo, luego aparece el último registro creado.\n\n¿Tienes alguna otra manera?\n\n[code=fw:2zrzlqa0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />CLOSE SLGRUP<br />USE SLGRUP<br />SLGRUP-><span style=\"color: #000000;\">(</span>DBSETORDER<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />DBSKIP<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br />oGruLbx:<span style=\"color: #000000;\">oDbf</span>:= <span style=\"color: #ff0000;\">\"SLGRUP\"</span><br />oGruLbx:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:2zrzlqa0]",
"time": "21:31",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hola,\n\nSupongo que el SKIP 0 lo hiciste en el otro lado, en el lado que no añadio el registro.\nSiendo lo anterior ¿ Podrias probar a hacer un GO TOP ?\n\nHay un mensaje que habla de este tema... pero no resuelve mucho.. Seria este: <!-- m --><a class=\"postlink\" href=\"https://groups.google.com/g/comp.lang.xharbour/c/SY9iigGmnho/m/jfPvXVkzCAAJ\">https://groups.google.com/g/comp.lang.x ... PvXVkzCAAJ</a><!-- m -->\n\n\nEn todo caso, en el fuente de ADORDD parece que este tema esta previsto y la nativa fundamental ADO_REFRESH lo contempla. Asi un SKIP 0 o un GO TOP deberian funcionar\n\n[code=fw:2gk8js6u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_REFRESH<span style=\"color: #000000;\">(</span> nWA, lRequery <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//22.08.15</span><br /> <span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">(</span> nWA <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nReccount<br /> <span style=\"color: #00C800;\">LOCAL</span> nRecno, xKey, aSeek, oRs, cSql<br /> <span style=\"color: #00C800;\">LOCAL</span> lOnlyfirstField := .T., oClone<br /><br /> <span style=\"color: #00C800;\">IF</span> !ADOCON_CHECK<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> nReccount := ADORECCOUNT<span style=\"color: #000000;\">(</span> nWA, aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> lRequery := <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span> lRequery == <span style=\"color: #00C800;\">NIL</span>, .F., lRequery <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> !aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .AND.!aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bof</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> nRecno := aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span>aWAData<span style=\"color: #000000;\">[</span>WA_FIELDRECNO<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> lRequery<br /> ADO_REQUERY<span style=\"color: #000000;\">(</span> nWA , aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> aWAData<span style=\"color: #000000;\">[</span> WA_RECCOUNT <span style=\"color: #000000;\">]</span> := nReccount<br /> aWAData<span style=\"color: #000000;\">[</span> WA_LREQUERY <span style=\"color: #000000;\">]</span> := .T. <span style=\"color: #B900B9;\">//already requeried set to .f.</span><br /><br /> ADO_GOTO<span style=\"color: #000000;\">(</span> nWA, nRecNo <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">// record does not exist anymore other app delete it!</span><br /> <span style=\"color: #00C800;\">THROW</span><span style=\"color: #000000;\">(</span> ErrorNew<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADORDD\"</span>, <span style=\"color: #000000;\">10002</span>, <span style=\"color: #000000;\">10002</span>, <span style=\"color: #ff0000;\">\"Record move \"</span>+aWAData <span style=\"color: #000000;\">[</span> WA_TABLENAME<span style=\"color: #000000;\">]</span> ,;<br /> STR<span style=\"color: #000000;\">(</span> nRecNo <span style=\"color: #000000;\">)</span>+ <span style=\"color: #ff0000;\">\"was deleted by other app and ADORDD cant reposition \"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> VALTYPE<span style=\"color: #000000;\">(</span> aWAData<span style=\"color: #000000;\">[</span> WA_RECCOUNT <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"U\"</span> <span style=\"color: #B900B9;\">//initialize</span><br /> aWAData<span style=\"color: #000000;\">[</span> WA_RECCOUNT <span style=\"color: #000000;\">]</span> := nReccount<br /> <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br /><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #B900B9;\">// NEW RECORDS ADDED BY OTHERS?</span><br /> <span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">[</span> WA_RECCOUNT <span style=\"color: #000000;\">]</span> < nReccount <span style=\"color: #B900B9;\">//only new records</span><br /> <span style=\"color: #B900B9;\">//PAY ATTENTION TO ADOWHERECLAUSE AND SET RECORDSET OPEN WHERE CLAUSE BECAUSE THE NEW RECORD MIGHT NOT BE VISIBLE!</span><br /> ADO_REQUERY<span style=\"color: #000000;\">(</span> nWA , aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> aWAData<span style=\"color: #000000;\">[</span> WA_LREQUERY <span style=\"color: #000000;\">]</span> := .T. <span style=\"color: #B900B9;\">//already requeried set to .f.</span><br /> <span style=\"color: #B900B9;\">//re initialize</span><br /> aWAData<span style=\"color: #000000;\">[</span> WA_RECCOUNT <span style=\"color: #000000;\">]</span> := nReccount<br /><br /> ADO_GOTO<span style=\"color: #000000;\">(</span> nWA, nRecNo <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">[</span> WA_RECORDSET <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">// record does not exist anymore other app delete it!</span><br /> <span style=\"color: #00C800;\">THROW</span><span style=\"color: #000000;\">(</span> ErrorNew<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADORDD\"</span>, <span style=\"color: #000000;\">10002</span>, <span style=\"color: #000000;\">10002</span>, <span style=\"color: #ff0000;\">\"Record move \"</span>+aWAData <span style=\"color: #000000;\">[</span> WA_TABLENAME<span style=\"color: #000000;\">]</span> ,;<br /> STR<span style=\"color: #000000;\">(</span> nRecNo <span style=\"color: #000000;\">)</span>+ <span style=\"color: #ff0000;\">\"was deleted by other app and ADORDD cant reposition \"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS</div>[/code:2gk8js6u]\n\nSalu2",
"time": "12:48",
"topic": "ADO RDD xHarbour",
"username": "hmpaquito"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Así que intenté poner SKIP 0 y GO TOP después de escribir el registro y no actualiza xbrowse en el otro.\nTambién intente actualizar xbrowse y no aparece, solo aparece el registro nuevo en el sistema que lo lanzó, en el otro no aparece.",
"time": "21:15",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Intenta contactar con el autor de la clase. Quizá él pueda dar alguna pauta",
"time": "20:28",
"topic": "ADO RDD xHarbour",
"username": "hmpaquito"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gemtleman\n\nI have been using ( plain ) ADO ( class and methods ) for many years .. 32 and 64 bits ... Have a look in the samples folder and compile AdoRick.prg .. Uses all the Fivewin code .. xbrowse, panels, folders ... etc.\n\nYou can use ADO to connect to MS Sql Server, MS Access and ( most ) all the other Sql databases as well ... Rao has made the ADO connection syntax with many FiveWin wrappers .. Look in the \\source\\functions\\adofuncs.prg ..\n\nThanks\nRick Lipkin",
"time": "13:39",
"topic": "ADO RDD xHarbour",
"username": "Rick Lipkin"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Otto\":10iinzd9]Marc,\nDo you also have speed problems on the PC where you saved your DBF files.\nRegards,\nOtto[/quote:10iinzd9]\n\nNo, On the pc with the dbf's the program is ok.\n\nOn the peer to peer (like it is) speed improvement would be nice. But I can absolutely be a issue of hardware / settings on de pc's..\nI'm not a IT guy.... So I take a PC out of the box, connect it to the netwerk and have a //PCMARC//.... path\n\nI have I7 an I5, SSD and 1000 g/Network",
"time": "08:37",
"topic": "ADO RDD xHarbour",
"username": "Marc Venken"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marc,\n\nuse your software form the other PCs with RDP.\n\nBest regards,\nOtto",
"time": "10:12",
"topic": "ADO RDD xHarbour",
"username": "Otto"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To All\n\nAs far as updating any .dbf record ... I use goto Recno() .. that in many cases mimics dbCommit() .. goto Recno() forces the record pointer to move albeit .. back to itself.\n\nRick Lpkin",
"time": "13:21",
"topic": "ADO RDD xHarbour",
"username": "Rick Lipkin"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2022-04-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Resolvido, com a ajuda do AHF, descobri que na função do ADORECCOUNT não estava definido o MYSQL.\nAdicionei o aAWData[ WA_ENGINE ]== \"MYSQL\" no final do primeiro IF.\n\nObrigado.\n\n[code=fw:xi793poa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #B900B9;\">// 30.06.15</span><br /> <span style=\"color: #00C800;\">IF</span> aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"ACCESS\"</span> .OR. aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"SQLITE\"</span> .OR.;<br /> aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"FIREBIRD\"</span> .OR. aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span>== <span style=\"color: #ff0000;\">\"POSTGRE\"</span> .OR.;<br /> aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span>== <span style=\"color: #ff0000;\">\"ORACLE\"</span> .OR. aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span>== <span style=\"color: #ff0000;\">\"MYSQL\"</span> <span style=\"color: #B900B9;\">// ADICIONADO MYSQL</span><br /> <span style=\"color: #B900B9;\">//6.08.15 ONLY WITH ACCESSIT TAKES LONGER IN BIG TABLES</span><br /> cSql := <span style=\"color: #ff0000;\">\"SELECT MAX(\"</span>+<span style=\"color: #000000;\">(</span> ADO_GET_FIELD_RECNO<span style=\"color: #000000;\">(</span> aAWData<span style=\"color: #000000;\">[</span>WA_TABLEINDEX<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\")+1 FROM \"</span>+aAWData<span style=\"color: #000000;\">[</span>WA_TABLENAME<span style=\"color: #000000;\">]</span><br /><br /> ELSEIF aAWData<span style=\"color: #000000;\">[</span> WA_ENGINE <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"MSSQL\"</span><br /> cSql := <span style=\"color: #ff0000;\">\"SELECT IDENT_CURRENT('\"</span>+aAWData<span style=\"color: #000000;\">[</span>WA_TABLENAME<span style=\"color: #000000;\">]</span>+<span style=\"color: #ff0000;\">\"')+1 AS AUTO_INCREMENT\"</span><br /><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #B900B9;\">//30.06.15 REPLACED BY RAO NAGES IDEA next incremente key</span><br /> cSql := <span style=\"color: #ff0000;\">\"SELECT `AUTO_INCREMENT` FROM INFORMATION_SCHEMA.TABLES\"</span>+;<br /> <span style=\"color: #ff0000;\">\" WHERE TABLE_SCHEMA = '\"</span>+aAWData<span style=\"color: #000000;\">[</span> WA_CATALOG <span style=\"color: #000000;\">]</span>+<span style=\"color: #ff0000;\">\"' AND TABLE_NAME = '\"</span>+aAWData<span style=\"color: #000000;\">[</span> WA_TABLENAME <span style=\"color: #000000;\">]</span>+<span style=\"color: #ff0000;\">\"'\"</span><br /> <span style=\"color: #00C800;\">ENDIF</span></div>[/code:xi793poa]",
"time": "15:50",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2023-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Does anyone know if there is any way to increase the conversion speed of hb_adoupload?",
"time": "21:46",
"topic": "ADO RDD xHarbour",
"username": "rodrigoppt"
}
] |
ADO RDD xHarbour
|
[
{
"date": "2013-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\nI use ODBC in my programs to connect to database and want to change it and use ADO\nIs there a method Fetch() In ADODB.Recordset \nI want to execute sql but fetching records manyaly one by one.\n\nAND PLEASE ...\nWhere i can find manual about all methods and DATA variables for ADODB.Recordset and ADODB.Connection\n\nBest regards,",
"time": "13:54",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Avista\n\nHere is the Wiki on using ADO and Fivewin that many of our friends have contributed ..\n\n<!-- m --><a class=\"postlink\" href=\"http://wiki.fivetechsoft.com/doku.php?id=ado-related_stuffs\">http://wiki.fivetechsoft.com/doku.php?i ... ted_stuffs</a><!-- m -->\n\nTo Answer your question .. Fetch() is not a method ( as far as I know ) .. Here are the most common methods and their xBase counter parts ..\n\n[code=fw:1v1saruk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Append --> oRecordSet:<span style=\"color: #000000;\">AddNew</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />Close --> oRecordSet:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />Commit --> oRecordSet:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />Delete --> oRecordSet:<span style=\"color: #000000;\">Delete</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />Deleted<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #000000;\">Status</span> == adRecDeleted<br />EOF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #000000;\">EOF</span> or oRecordSet:<span style=\"color: #000000;\">AbsolutePosition</span> == <span style=\"color: #000000;\">-3</span><br />Field<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #0000ff;\">Name</span>, :<span style=\"color: #000000;\">Value</span>, :<span style=\"color: #000000;\">Type</span><br />FCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">Count</span><br />GoTop --> oRecordSet:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />GoBottom --> oRecordSet:<span style=\"color: #000000;\">MoveLast</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />Locate --> oRecordSet:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">(</span> cFor, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> lContinue, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br />Open --> oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span> cQuery, hConnection <span style=\"color: #000000;\">)</span><br />OrdListClear<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #0000ff;\">Index</span> := <span style=\"color: #ff0000;\">\"\"</span><br />RecCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, LastRec<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #000000;\">RecordCount</span><br />RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> --> oRecordSet:<span style=\"color: #000000;\">AbsolutePosition</span><br />Skip --> oRecordSet:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:1v1saruk]\n\nHere is the official Microsoft page on Ado methods..\n\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/windows/desktop/ms677516%28v=vs.85%29.aspx\">http://msdn.microsoft.com/en-us/library ... 85%29.aspx</a><!-- m -->\n\nRick Lipkin",
"time": "14:11",
"topic": "ADO RecordSet Fetch() ?",
"username": "Rick Lipkin"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "thanks\nregards",
"time": "14:37",
"topic": "ADO RecordSet Fetch() ?",
"username": "cnavarro"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Avista:\n\nAn other one\n\n<!-- m --><a class=\"postlink\" href=\"http://www.w3schools.com/ado/\">http://www.w3schools.com/ado/</a><!-- m -->\n\nBest regards",
"time": "16:42",
"topic": "ADO RecordSet Fetch() ?",
"username": "Armando"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Avista ..\nPlease send me your Mail.",
"time": "01:10",
"topic": "ADO RecordSet Fetch() ?",
"username": "Adolfo"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Adolfo,\nThis is my e-mail\n\n<!-- e --><a href=\"mailto:sunrised@t-home.mk\">sunrised@t-home.mk</a><!-- e -->\n\nRegards,",
"time": "07:58",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is what i am doing usung tOdbc and tDbOdbcd classes\n\n[code=fw:28i6v7do]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oOdbc := TOdbc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> sConnectionString <span style=\"color: #000000;\">)</span><br />cSql := <span style=\"color: #ff0000;\">\"SELECT * FROM MyTable\"</span><br />oDbf := TDbOdbcDirect<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> cSql, oOdbc <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> lAutoComplete <span style=\"color: #B900B9;\">// Fill all records</span><br /> oDbf:<span style=\"color: #000000;\">Complete</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> .t.<br /> <span style=\"color: #00C800;\">IF</span> oDbf:<span style=\"color: #000000;\">Fill</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Fill one record</span><br /> nRecords := nRecords + <span style=\"color: #000000;\">1</span><br /> oSayRecords:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span>ALLTRIM<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>nRecords<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> lBreak<br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Break by user\"</span><span style=\"color: #000000;\">)</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:28i6v7do]\n\nHOW TO DO THIS using ADO \n\nRick: Fetch() is method from tOdbc class which using SqlFetch() fill one records from executed SQL\nI need something similar using ADO\n\nBest regards,",
"time": "08:12",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "PLEASE i need some sugestions about this ...\n\nWhy i need this\nFor example if i use sql \"SELECT * FROM MyTable\" and MyTable have 15.000.000 records \nI want to have a view while collecting (importing) data and chance to break it\n\nBest regards,",
"time": "22:17",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Avista\n\n[quote:3a1qxujl]\nWhy i need this\nFor example if i use sql \"SELECT * FROM MyTable\" and MyTable have 15.000.000 records\nI want to have a view while collecting (importing) data and chance to break it\n[/quote:3a1qxujl]\n\nYou are correct .. it becomes 'expensive' to open a Sql table with \"Select * From Table\" .. Generally, you open a table looking for a set of records that pertain to a certain criteria such as between two dates \n\ndDate1 := ctod(\"01/10/2013\")\ndDate2 := Date()\n\ncSql := \"Select * from [Table] where [DateField] >= '\"+dtoc(dDate1)+\"'\"\ncSql += \" and [DateField] <= \"'\"+dtoc(dDate2)+\"'\"\n\nor\n\nIf you just want to open a blank recordset knowing you are going to Add records to it you can do it like this:\n\ncSql := \"Select * from [Table] where 1 = 2\" // will never be true so it opens an empty recordset\n\nLots of possibilities!\nRick Lipkin",
"time": "22:47",
"topic": "ADO RecordSet Fetch() ?",
"username": "Rick Lipkin"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick, Thanks for reply\n\nin this case\ndDate1 >= ctod(\"01/01/2013\")\nuser can by mistake write \"01/01/2003\" so all record will be selected that will be going too long and user dont know if program is working or is blocked \nbecouse of that i need solution liike in my source sample in reply before ... if using odbc using Fetch() and collecting records one by one \nsecond reason is that i want to have a view while collecting and have chance to break it for example\n\n[code=fw:29eefcwi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> .t.<br /> <span style=\"color: #00C800;\">IF</span> oDbf:<span style=\"color: #000000;\">Fill</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Fill one record</span><br /> nRecords := nRecords + <span style=\"color: #000000;\">1</span><br /> oSayRecords:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span>ALLTRIM<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>nRecords<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> lBreak<br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Break by user\"</span><span style=\"color: #000000;\">)</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDDO</span></div>[/code:29eefcwi]\n\nIF i use \ncSql := \"Select * from [Table] where 1 = 2\"\n\nHow i can adding records one by one \nPLEASE some sample if it is possible\n(if it is possible probably that is what i need)\n\nThanks a lot\n\nRegards,",
"time": "00:44",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "There is no way to read and add records one by one to a recordset in ADO. We open RecordSet once and all records matching the Query are read into the recordset.\n\nIf we expect that the Query may result in too many records, then specify oRs:MaxRecords := <yourlimit> and then open the recordset.\nIf oRs:RecordCount() < oRs:MaxRecords then we know all records are read and if not there are more rows meeting the criteria that are not read. In such a case we may narrow down the where clause or take any other appropriate action.\n\nExample:\noRs := TOleAuto():New( \"ADODB.RecordSet\" )\noRs:MaxRecords := 1000\n<other clauses>\noRs:Open( .... )\n\nif oRs:RecordCount() < oRs:MaxRecords\n // oRs contains all records\nelse\n // oRs contains only part and there are more records meeting the criteria\nendif\n\nThis is equivalent to \"SELECT TOP <n> ....\" query, but the SQL query syntax is different for different DBMS.",
"time": "04:21",
"topic": "ADO RecordSet Fetch() ?",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao Thanks for reply \n\nOne more question\n\nIs it possible to define a TIMER and every second read value from\noRs:RecordCount()\nbefore collecting is finished and dysplay it on the screen\nand if nned to execute \noRs:Close() \nbefore collecting is finished\n\nIf it is possible will be a good tip\n\nBest regards,",
"time": "08:08",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, atleast theoritically.\n\nWhen we open a RecordSet, we can specify adAsyncFetch ( value is 32 ) by or'ing it with nOption parameter.\n\nThen after reading first batch of records ( set by us in oRs:CatcheSize ), rest of the records are read and added to the recordset Asynchronously. We can also examine the events generated to asertain the number of records read so far and if the entire recordset is fetched.\n\nIt should be easy to do it with VB, VC# etc.\n\nI said \"theoritically\", because I tried long ago but could not make it work with Harbour code.\n\nI too am interested to learn if any other friends have done it with (x)Harbour.\n\nThrough this posting I request our friends to try and educate us if they succeed.\n\nFor further information please refer\n<!-- m --><a class=\"postlink\" href=\"http://www.w3schools.com/ado/ado_ref_recordset.asp\">http://www.w3schools.com/ado/ado_ref_recordset.asp</a><!-- m -->",
"time": "10:48",
"topic": "ADO RecordSet Fetch() ?",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have try to define TIMER\nBut not success\nNothing is working until [b:1kax5rnc]oRs:Open()[/b:1kax5rnc] finish.\nThat is big problem becouse user dont know is program working or it is blocked.\nProbably [b:1kax5rnc]adAsyncFetch[/b:1kax5rnc] combined with [b:1kax5rnc]oRs:CatcheSize[/b:1kax5rnc] can give results but i have no idea what to do.\nI have readed many forums about this but found nothing useful.\nI think Rick and Rao have most expperiance with ADO and i please too Antonio, Enrico ... and all others to help \n\nBest regards,",
"time": "17:32",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "We can forget about adAsyncFetch. This does not work with C. This and ADO event handling is possible only with VB etc and not with normal C.\n\nLet us address your issue.\nNormally opening a client side recordset should not take unduly long time as long as we judiciously select the size of the the data to be read.\n\nStill if you want to mimic the ODBC fetch() record by record and then copy into your own memory, I suggest the following way:\n\nOpen serverside recordset with adOpenForwardOnly and adLockReadOnly. Keep reading the recordset as and when you need and copy to your memory ( array or whatever you were using with ODBC ). This is the fastest cursor possible.\n\nExample:\nI assume you have already opened the connection.\n[code=fw:1jmaoubo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oRs := TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADODB.RecordSet\"</span> <span style=\"color: #000000;\">)</span><br /><br />WITH OBJECT oRs<br /> :<span style=\"color: #000000;\">Source</span> := <your sql statement><br /> :<span style=\"color: #000000;\">ActiveConnection</span> := oCn<br /> :<span style=\"color: #000000;\">CursorLocation</span> := <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// adUseServer</span><br /> :<span style=\"color: #000000;\">LockType</span> := <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// adLockReadOnly</span><br /> :<span style=\"color: #000000;\">CursorType</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// adOpenForwardOnly</span><br /> <span style=\"color: #B900B9;\">//</span><br /> :<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />END<br /> </div>[/code:1jmaoubo]\n\nWhenever you want to fetch a record, execute code something like this:\n\nif oRs:Eof()\n // Already fetched all records. No more records\nelse\n for n := 1 to oRs:Fields:Count()\n aRow[ n ] := oRs:Fields( n - 1 ):Value\n next n\n AAdd( aData, aRow )\n oRs:MoveNext()\nendif\n\nIf you like, I give you here a shortcut code for the above:\n\n[code=fw:1jmaoubo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">if</span> ! oRs:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> AAdd<span style=\"color: #000000;\">(</span> aData, oRs:<span style=\"color: #000000;\">GetRows</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">endif</span><br /> </div>[/code:1jmaoubo]\n\nWith this you can do what you were doing using ODBC fetch() method.\n\nMy personal opinion is that you should stop thinking the ODBC way and start thinking the ADO way, same way as we should stop thinking the DBF way and start thinking the RDBMS way when we move to Relational Database systems.",
"time": "21:53",
"topic": "ADO RecordSet Fetch() ?",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao,\n\nThanks so myuch, you are right\n\nI have one more quewstion (problem) with ERROR object of oRs:Open()\noErr:Description always return DISP_E_UNKNOWNNAME\nand oErr:Number, oErr:Source, oErr:NativeError... dont exist.\n\noErr:modulename return nothing empty string\noErr:osthreadid return 0\noErr:procline return 0\noErr:procname return TOLEAUTO:OPEN\noErr:runningthreads return 0\noErr:vmthreadid return 0\n\nPlease some sugestion how to detect the error returned from server.\nI use Informix database\n\nBest Regards,",
"time": "15:23",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-07-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Harbour shows the Ado Error correctly. xHarbour does not.\nI suggest you use FWH function FW_ShowAdoError( oCn ), where oCn is the connection object.\n\nTRY\n oRs:Open( .... )\nCATCH\n FW_ShowAdoError( oCn )\n << decide what to do >>\nEND",
"time": "16:41",
"topic": "ADO RecordSet Fetch() ?",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-08-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao,\n\nIn which version of fwh is addes function FW_ShowAdoError()\nI still use 13.03\n\n[quote:n82ualmk]Harbour shows the Ado Error correctly. xHarbour does not.[/quote:n82ualmk]\n\nThis mean that if i move to harbour from xharbour will work ok ?\nIf yes can i use FWH + bcc582 or i must use something else MSVC or ?\nWhat kindd of changes i must to do if i move to harbour in my source ?\n\nWhat is better choice xharbour or harbour ?\n\nGlobal WHAT is the diference between harbour and xharbour ?\n\nBest best regards,",
"time": "21:53",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-08-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The function FW_ShowAdoError() was first included in FWH 13.05.\n\nThe logic is well known to all users and it should be fine for me to share the code here. You may even find the main part of this code already posted in these forums \n[code=fw:1efo5am4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> FW_ShowAdoError<span style=\"color: #000000;\">(</span> oCn, lSilent <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nErr, oErr, cErr<br /><br /> <span style=\"color: #00C800;\">DEFAULT</span> lSilent := .f.<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> nErr := oCn:<span style=\"color: #000000;\">Errors</span>:<span style=\"color: #0000ff;\">Count</span> <span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">0</span><br /> oErr := oCn:<span style=\"color: #000000;\">Errors</span><span style=\"color: #000000;\">(</span> nErr - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ! lSilent<br /> WITH OBJECT oErr<br /> cErr := 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;\">(</span> oErr:<span style=\"color: #000000;\">NativeError</span> <span style=\"color: #000000;\">)</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;\">(</span> <span style=\"color: #ff0000;\">'-'</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">)</span><br /> cErr += CRLF + ProcName<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"( \"</span> + cValToChar<span style=\"color: #000000;\">(</span> ProcLine<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\" )\"</span><br /><br /> MsgAlert<span style=\"color: #000000;\">(</span> cErr, IfNil<span style=\"color: #000000;\">(</span> oCn:<span style=\"color: #000000;\">Provider</span>, <span style=\"color: #ff0000;\">\"ADO ERROR\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> END<br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADO ERROR UNKNOWN\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> oErr<br /> </div>[/code:1efo5am4]\nYou may include this function in your libraries. You may even modify as you like.\n\nFor this purpose alone you need consider changing (x)Harbour.\nWhich is better is better explained by friends who are more knowledgeable than me.\n\nI work with both xHarbour and Harbour for testing my contributions to FWH library.\n\nPersonally I still continue to use bcc582. For my personal software work using ADO, I still continue xHarbour. There is some functionality available in xHarbour but not in Harbour and I need that for some advanced usage of ADO. I am waiting for Harbour to provide similar functionality.",
"time": "22:23",
"topic": "ADO RecordSet Fetch() ?",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-08-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao, Rick, ...\n\nMany thanks for reply and help\n\nMany thanks to Adolfo for great manual which he send to me for ADO 2.8\ni think someone need to put this manual on place where everyone can download it\n\nBest regards to all",
"time": "13:33",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-08-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nYou can sent it to <!-- e --><a href=\"mailto:alinares@fivetechsoft.com\">alinares@fivetechsoft.com</a><!-- e --> so he could upload to contributions.\n\nMany thanks.",
"time": "16:41",
"topic": "ADO RecordSet Fetch() ?",
"username": "elvira"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2013-08-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks\nAlready sent\nRegards,",
"time": "23:30",
"topic": "ADO RecordSet Fetch() ?",
"username": "avista"
}
] |
ADO RecordSet Fetch() ?
|
[
{
"date": "2010-07-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Does anyone know why I am getting this error?\n\n[code=fw:113g9l7s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> oRs:= createObject<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ADODB.RecordSet\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span> valtype<span style=\"color: #000000;\">(</span>oRS<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// returns \"O\"</span><br /> oRs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> I <span style=\"color: #0000ff;\">get</span> this error <span style=\"color: #0000ff;\">on</span> the last line above:<br /><br /> <span style=\"color: #000000;\">Error</span> description: <span style=\"color: #000000;\">Error</span> ADODB.RecordSet/<span style=\"color: #000000;\">6</span> DISP_E_UNKNOWNNAME: <span style=\"color: #000000;\">OPEN</span></div>[/code:113g9l7s]\n\nI am using FWH ver 10.3 with xHarbour.\n\nRegards,\nJames",
"time": "16:12",
"topic": "ADO RecordSet open error",
"username": "James Bott"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James\n\nStart here when you define your object .. then you can add additional parameters as I have .. I would definitly use the local cache option when you create your recordset .. being local makes listboxes just really fast.\n\nRick Lipkin\n\n[code=fw:36szsz4h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRs := TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:36szsz4h]\n\n\n[code=fw:36szsz4h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />cSQL := <span style=\"color: #ff0000;\">\"SELECT * from GAS where AGENEID = '\"</span>+xAGENEID+<span style=\"color: #ff0000;\">\"' order by DATE,LICENSE desc\"</span><br /><br />oRs := TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">)</span><br />oRs:<span style=\"color: #000000;\">CursorType</span> := <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// opendkeyset</span><br />oRs:<span style=\"color: #000000;\">CursorLocation</span> := <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// local cache</span><br />oRs:<span style=\"color: #000000;\">LockType</span> := <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// lockoportunistic</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br /> oRs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span> cSQL,<span style=\"color: #ff0000;\">'Provider='</span>+xPROVIDER+<span style=\"color: #ff0000;\">';Data Source='</span>+xSOURCE+<span style=\"color: #ff0000;\">';Initial Catalog='</span>+xCATALOG+<span style=\"color: #ff0000;\">';User Id='</span>+xUSERID+<span style=\"color: #ff0000;\">';Password='</span>+xPASSWORD <span style=\"color: #000000;\">)</span><br />CATCH oErr<br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Error in Opening GAS table\"</span> <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br />END <span style=\"color: #00C800;\">TRY</span><br /> </div>[/code:36szsz4h]",
"time": "17:30",
"topic": "ADO RecordSet open error",
"username": "Rick Lipkin"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr. Rick\n\nWhen CursorLocation is 3 ( adUseClient) the RecordSet is always opened as Static. No use specifying keyset or dynamic.\n\nAfter opening please check \n? oRs:CursorType.",
"time": "18:49",
"topic": "ADO RecordSet open error",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr James\n\nFor opening recordset, minimum *two things should be specified.\n1. Source ( Sql statement, Table name, URL ). In our case mostly sql statement\n2. Either connection object or connection string.\n\nEither we can specify then initially:\noRs:Source := <sql statement>\noRs:ActiveConnection := oCon\nand then\noRs:Open() .. works\n\nOr\n\noRs:Open( <cSqlStatement>, <ConnObject>/<ConnString> ) also works.\n\nPlease review testxbr3.prg. Opens connection to Access database ( test.mdb ) in the \\fwh\\samples folder and opens recordsets.",
"time": "18:53",
"topic": "ADO RecordSet open error",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao,\n\nI have tried testxbr3.prg and it works fine. This is using an Access database. I note that this code calls oRs:Open() without any parameters and it doesn't error out.\n\nThe other test code you provided is using a DBF database. This is the one that errors out on the oRs:Open() call (with or without parameters).\n\nJames",
"time": "19:11",
"topic": "ADO RecordSet open error",
"username": "James Bott"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have to open Access databases and Progress databases. I get that error if I get the connect string wrong or the DSN entry is wrong. Those semicolons and sometimes spaces really mean something.\n\nHere is a DSN-less connect string I use for an Access database that does not need username and password.\n\ncConnectString := [DRIVER={Microsoft Access Driver (*.mdb)};dbq=\\\\Trg210\\webcenter\\Database\\webcenter40.mdb;]\ncSqlString := [Select * From Customers Where Customers.Active ='Yes' AND Customers.Customer_Username = 'gale']\noRecordSet := CreateObject( \"ADODB.Recordset\" )\noRs := oRecordSet:Open( cSqlString, cConnectString, 0, 1 )",
"time": "22:20",
"topic": "ADO RecordSet open error",
"username": "Gale FORd"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gale,\n\nI is not the connection that is the problem. The problem turns out to be that the WHERE clause in the SELECT statement is causing the crash. For more details see this thread.\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19334&start=30\">viewtopic.php?f=3&t=19334&start=30</a><!-- l -->\n\nRao, is not having the same problem. We have not figured out why I am.\n\nThanks for the suggestions.\n\nJames",
"time": "02:22",
"topic": "ADO RecordSet open error",
"username": "James Bott"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":37j4p8oe]Does anyone know why I am getting this error?[/quote:37j4p8oe]\n\nCan you show the exact sample you are trying?\n\nEMG",
"time": "10:39",
"topic": "ADO RecordSet open error",
"username": "Enrico Maria Giordano"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nIt is in the third message on this page:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19334&start=30\">viewtopic.php?f=3&t=19334&start=30</a><!-- l -->\n\nJames",
"time": "12:42",
"topic": "ADO RecordSet open error",
"username": "James Bott"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Your sample works fine here as it is.\n\nEMG",
"time": "16:36",
"topic": "ADO RecordSet open error",
"username": "Enrico Maria Giordano"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James:\n\nJust an idea, do have the ado heder included ?\n\n#Include \"Ado.ch\"\n\nRegards",
"time": "17:03",
"topic": "ADO RecordSet open error",
"username": "Armando"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Armando,\n\nI didn't have the ado.ch header included, but I just added it and I still get the same error.\n\nThanks for the idea.\n\nJames",
"time": "17:48",
"topic": "ADO RecordSet open error",
"username": "James Bott"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":bvf9uyk8]Armando,\n\nI didn't have the ado.ch header included, but I just added it and I still get the same error.\n\nThanks for the idea.\n\nJames[/quote:bvf9uyk8]\nincluding or not including ado.ch does not make any difference because the program does not use any constants defined in the ado.ch.\nado.ch contains just definitions of constants.\n\nThe issue is :\nNo problem with connection. Connection is getting established.\nEven recordset can be opened as long as sql statement does not contain 'WHERE' or 'ORDER' clause.\n\nThe reasons to be found is why WHERE and ORDER clauses are failing and that too only on Mr. James PC.",
"time": "18:04",
"topic": "ADO RecordSet open error",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet open error
|
[
{
"date": "2010-07-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao,\n\nActually, the ORDER clause is working. That error was caused by a syntax error on my part. Only the WHERE clause is not working.\n\nJames",
"time": "18:06",
"topic": "ADO RecordSet open error",
"username": "James Bott"
}
] |
ADO RecordSet open error
|
[
{
"date": "2014-07-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi all,\n\nI need help how to create DBF file and insert data from ADO Recordset\n\nBest regards,",
"time": "15:07",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Avista\n\nHere is the psudo code ..\n\n1) Create your .dbf\n2) Open your recordset ...\n\n[code=fw:2pnkl73d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> .not. oRs:<span style=\"color: #000000;\">Eof</span><br /> <br /> <span style=\"color: #0000ff;\">Select</span> <span style=\"color: #000000;\">1</span><br /> Append Blank<br /><br /> a->Field1 := oRs:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Field1\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /> a->Field2 := oRs:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Field2\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /><br /> oRs:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Enddo</span><br /><br />CLose Databases<br />oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:2pnkl73d]\n\nRick Lipkin",
"time": "18:50",
"topic": "ADO RecordSet to DBF",
"username": "Rick Lipkin"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\nThanks for reply,\n\n[quote:2ud58ilj]1) Create your .dbf[/quote:2ud58ilj]\n\nThat is my problem ... i cant create .DBF becouse i dont know fields ...\nbecouse RecordSet is openet berore that and contains data from executed SQL\nI want to export data from opened recordset to .dbf file\nSo i mean to read first the fields from recordset, (filedname, fieldtype, fieldlen, fielddec ) \nand after that to create .dbf and insert data in .dbf file\n\nAny solution please ?\n\nBest regards,",
"time": "23:50",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "FWH already provides a ready made function for this.\n\nFW_AdoExportToDBF( oRs, cDbf, lEditStruct )",
"time": "02:34",
"topic": "ADO RecordSet to DBF",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao Thanks for reply\n\n[quote:gs83syox]FWH already provides a ready made function for this.\n\nFW_AdoExportToDBF( oRs, cDbf, lEditStruct )[/quote:gs83syox]\n\nI have seen on this forum that this functuins are includer in version 13.08\nI still use 13.04 and not ready in this moment to change version and test apps\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=28708&start=30\">viewtopic.php?f=3&t=28708&start=30</a><!-- l -->\n[quote:gs83syox]\nRe: DBF to SQL script tool\nNew postby nageswaragunupudi » Fri Jul 11, 2014 2:37 am\n\nMr Hakan ONEMLI \n\nFWH Ado functions work for Access, MS Sql, MySql, Oracle and SQLite3.\nRegards\n\nG. N. Rao.\nHyderabad, India\nnageswaragunupudi\n[/quote:gs83syox]\n\nBTW I use Informix and i am not ready now to test it.\n\n[b:gs83syox]Can i find the source of functions:[/b:gs83syox]\nfunction FWAdoDelRecord( oRs ) --> lSuccess\nfunction FWAdoFieldType( oRs, n ) --> cType (xbase type) \nfunction FWAdoFieldDec( oRs, n ) --> nDecs (xbase)\nfunction FWAdoFieldSize( oRs, n ) --> nSize (xbase)\nfunction FWAdoLoadRecord( oRs ) --> aRecord\nfunction FWAdoSaveRecord( oRS, aRecord, nRecNo ) --> nil\nfunction FWAdoStruct( oRs ) --> aStruct\nfunction FWAdoFieldStruct( oRs, n/cname/ofield) or (oField) \n-> field strut info { cName, cDbtype, nDblen, nDbdec, nAdotype, lReadwrite }\nfunction FW_AdoExportToDBF( oRs, cDbfName, [lEditStruct] ) --> lSuccess\n\nBest regards,",
"time": "07:39",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Understand.\n\nWe might consider expanding the coverage to other SQL DBMSs depending on the users' requirements.",
"time": "09:09",
"topic": "ADO RecordSet to DBF",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Rao\n\n[quote:1i36gxcg]Understand.\n\nWe might consider expanding the coverage to other SQL DBMSs depending on the users' requirements.[/quote:1i36gxcg]\n\n[b:1i36gxcg]But please any other solution or \nCan i find the source of functions:[/b:1i36gxcg]\nfunction FWAdoDelRecord( oRs ) --> lSuccess\nfunction FWAdoFieldType( oRs, n ) --> cType (xbase type) \nfunction FWAdoFieldDec( oRs, n ) --> nDecs (xbase)\nfunction FWAdoFieldSize( oRs, n ) --> nSize (xbase)\nfunction FWAdoLoadRecord( oRs ) --> aRecord\nfunction FWAdoSaveRecord( oRS, aRecord, nRecNo ) --> nil\nfunction FWAdoStruct( oRs ) --> aStruct\nfunction FWAdoFieldStruct( oRs, n/cname/ofield) or (oField) \n-> field strut info { cName, cDbtype, nDblen, nDbdec, nAdotype, lReadwrite }\nfunction FW_AdoExportToDBF( oRs, cDbfName, [lEditStruct] ) --> lSuccess\n\nor sample .PRG for my case \nhow to detect type, size, dec ...for fields\n\nBest regards,",
"time": "09:24",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick, Rao, anyone ?\nAny sugestion please ?\n\nREgards,",
"time": "23:04",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Look\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=19&t=27296#p151744\">viewtopic.php?f=19&t=27296#p151744</a><!-- l -->\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=19&t=27296&start=15#p151819\">viewtopic.php?f=19&t=27296&start=15#p151819</a><!-- l -->",
"time": "23:25",
"topic": "ADO RecordSet to DBF",
"username": "cnavarro"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Navarro thanks for reply\n\nI urgent need the source of function [b:e9u9wag2]FW_AdoExportToDBF( oRs, cDbfName, [lEditStruct] )[/b:e9u9wag2]\nor same similar source sample\n\nBest regards,",
"time": "11:09",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"avista\":211guxk9]Rao Thanks for reply\n\n[quote:211guxk9]FWH already provides a ready made function for this.\n\nFW_AdoExportToDBF( oRs, cDbf, lEditStruct )[/quote:211guxk9]\n\nI have seen on this forum that this functuins are includer in version 13.08\nI still use 13.04 and not ready in this moment to change version and test apps\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=28708&start=30\">viewtopic.php?f=3&t=28708&start=30</a><!-- l -->\n[quote:211guxk9]\nRe: DBF to SQL script tool\nNew postby nageswaragunupudi » Fri Jul 11, 2014 2:37 am\n\nMr Hakan ONEMLI \n\nFWH Ado functions work for Access, MS Sql, MySql, Oracle and SQLite3.\nRegards\n\nG. N. Rao.\nHyderabad, India\nnageswaragunupudi\n[/quote:211guxk9]\n\nBTW I use Informix and i am not ready now to test it.\n\n[b:211guxk9]Can i find the source of functions:[/b:211guxk9]\nfunction FWAdoDelRecord( oRs ) --> lSuccess\nfunction FWAdoFieldType( oRs, n ) --> cType (xbase type) \nfunction FWAdoFieldDec( oRs, n ) --> nDecs (xbase)\nfunction FWAdoFieldSize( oRs, n ) --> nSize (xbase)\nfunction FWAdoLoadRecord( oRs ) --> aRecord\nfunction FWAdoSaveRecord( oRS, aRecord, nRecNo ) --> nil\nfunction FWAdoStruct( oRs ) --> aStruct\nfunction FWAdoFieldStruct( oRs, n/cname/ofield) or (oField) \n-> field strut info { cName, cDbtype, nDblen, nDbdec, nAdotype, lReadwrite }\nfunction FW_AdoExportToDBF( oRs, cDbfName, [lEditStruct] ) --> lSuccess\n\nBest regards,[/quote:211guxk9]\nThey are all functions in the later versions of FWH and the proper way to get the source code of these functions is by upgrading FWH.\nFWH being a priced product, we can not share the source code of FWH libraries freely over the forum or otherwise.\nBut the above functions are not really difficult and one can write by himself.",
"time": "12:27",
"topic": "ADO RecordSet to DBF",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Avista,\n\nWe can help you with FW_AdoExportToDBF() (I will check it with Rao and I may send you some code by email) but as Rao has clearly explained to you, if you want to use the result of our hard work, you should upgrade your FWH version, thanks for understanding it.",
"time": "12:58",
"topic": "ADO RecordSet to DBF",
"username": "Antonio Linares"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You can keep using FWH 13.04, upgrade to FWH 14.06, copy the required functions that you need and continue using 13.04.\n\nI am sure that you also ask your customers to get paid by your work <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "13:02",
"topic": "ADO RecordSet to DBF",
"username": "Antonio Linares"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks to all\n\nIn start i only asked how to detect from ado recordset\n[quote:1wc3u31t]filedname, fieldtype, fieldlen, fielddec[/quote:1wc3u31t]\n\nI use informix\n\n[quote:1wc3u31t]Re: DBF to SQL script tool\nNew postby nageswaragunupudi » Fri Jul 11, 2014 2:37 am\n\nMr Hakan ONEMLI \n\nFWH Ado functions work for Access, MS Sql, MySql, Oracle and SQLite3.\nRegards\n\nG. N. Rao.\nHyderabad, India\nnageswaragunupudi[/quote:1wc3u31t]\n\n[quote:1wc3u31t]Understand.\n\nWe might consider expanding the coverage to other SQL DBMSs depending on the users' requirements.\nRegards\n\nG. N. Rao.\nHyderabad, India[/quote:1wc3u31t]\n\nSo probably FW_AdoExportToDBF( oRs, cDbfName, [lEditStruct] ) will not help for informix database\n\n[quote:1wc3u31t]But the above functions are not really difficult and one can write by himself.\nRegards\n\nG. N. Rao.\nHyderabad, India[/quote:1wc3u31t]\n\nIf possible i need some help about that how to write function which detect filedname, fieldtype, fieldlen, fielddec from ado recordset and after that i will create .dbf aind insert data from ado recordset.\n\nAntonio,\nIf you can please send me some start sample source code \n<!-- e --><a href=\"mailto:sunrised@t-home.mk\">sunrised@t-home.mk</a><!-- e -->\n\nTnanks,\n\nRegards,",
"time": "13:57",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks,\n\nPossible help for now how to detect filedname, fieldtype, fieldlen, fielddec from ado recordset ?\nIf no it is ok ...i will go back to ODBC for now <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->\n\nBEST best regards,\nThanks",
"time": "15:09",
"topic": "ADO RecordSet to DBF",
"username": "avista"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:2fjr8x3k]FWH Ado functions work for Access, MS Sql, MySql, Oracle and SQLite3.\n[/quote:2fjr8x3k]\nThat means \"all\" functions in adofuncs.prg work for these DBMSs. Just a clarification. Many functions work for *all* DBMSs.\n\nFor example, for creation of Table on DBMS, we need to know specific datatypes of the DBMS. Also if keywords are used as some field names we need to know how to quote such field names which conflict with keywords. This is different for different DBMSs. \n\nExcept create table and sql generation functions, all pure ADO functions work for all DBMSs.\nIn particular,\nFw_OpenAdoConnection( cConnString )\nFW_OpenRecordSet(...)\nAnd all function listed above in this post including FW_AdoExportToDBF(..) work for all DBMSs.",
"time": "14:59",
"topic": "ADO RecordSet to DBF",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2014-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "oField := oRs:Fields( n ) // n is zero based \nor\noField := oRs:Fields( \"<fieldname>\" )\n\nThen\noField:Name --> field name\noField:Type --> Ado Type of the field as numeric\nYou can find all ado field types here\n<!-- m --><a class=\"postlink\" href=\"http://www.w3schools.com/asp/ado_datatypes.asp\">http://www.w3schools.com/asp/ado_datatypes.asp</a><!-- m -->\n\nFor character fields:\noField:DefinedSize --> Field length\nFor Numeric fields of type Decimal and Number:\noField:Precision --> Length\noField:NumericScale --> number of decimals\nFor numeric fields like double, float, etc.\nwe need to set Len and Dec on our own.\n\nIf you go through METHOD SetColFromADO() in the xbrowse.prg you can find how to use all the above how to derive DBF style types, etc from the above information.\n\nThis should be enough to answer all your questions.",
"time": "17:36",
"topic": "ADO RecordSet to DBF",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet to DBF
|
[
{
"date": "2013-06-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "What is the most desirable cursor type to use while opening a Recordset in ADO? \nadOpenKeySet or adOpenDynaic or adOpenStatic?\n\nWe almost always open RecordSet on client side, using CursorLocation as adUseClient (3)\n\n[u:1pjlktcq]Brief note on CursorLocation:[/u:1pjlktcq]\n\nIt is not necessary that we specify \"oRs:CursorLocation = adUseClient // 3 \" everytime we open a recordset. If we set connection object's CursorLocation property to adUseClient, all recordsets opened with that connection are all by default clientside only. We save one line of code while opening every recordset. Even otherwise it is always desirable to set connection object's CursorLocation to adUseClient.\nWe can not specify cursor location of recordset opened with methods like oCn:OpenSchema(...), oCn:Execute( cSql ), etc. It defaults to the cusrorlocation of the connection object. If we do not set oCn:CursorLocation to adUseClient, this recordset is opened on serverside and we can not navigate the recordset backwards and not all methods and data work like clientside recordset.\n\n[u:1pjlktcq]Back to CursorType:[/u:1pjlktcq]\nWhen we look around we see many postings setting custor type either to adOpenKeySet or adOpenDynamic but never adOpenForwardOnly or adOpenStatic.\n\n[quote:1pjlktcq]adOpenKeySet ( 1 )\nkeyset cursor. Like a dynamic cursor, except that you can't see records that other users add, although records that other users delete are inaccessible from your Recordset. Data changes by other users are still visible.\n\nadOpenDynamic ( 2 )\nUses a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed, except for bookmarks, if the provider doesn't support them.\n\nadOpenStatic ( 3 )\nUses a static cursor. A static copy of a set of records that you can use to find data or generate reports. Additions, changes, or deletions by other users are not visible.\nWhen we read the above descriptions we consider using one of them and never adOpenStatic.\n[/quote:1pjlktcq]\nBut what we ignore is that when we open a recordset on the client-side, only permitted cursortype is adOpenStatic. Let us read this:\n\n[quote:1pjlktcq]Note: If the CursorLocation property is set to adUseClient, the only valid setting for the CursorType property is adOpenStatic.\n\nNote: No error will occur if an unsupported value is set, the provider will just change to a supported CursorType instead.\n[/quote:1pjlktcq]\nSo whatever CursorType we specify adUseKeySet or adUseDynamic, expecting all those benefits described above, ADO will totally ignore our settings and open the recordset as adOpenStatic ONLY.\n\nAfter opening the recordset with any CursorType, if we ever care to query \n? oRs:CursorLocation \nthee result will always be 3 (adOpenStatic).\n\nSo why this useless and purposeless code oRs:CursorLocation := adOpenDynamic in our program, wasting oneline of code and about 40 keystrokes every time?\n\n[u:1pjlktcq]Isn't this better?\n[/u:1pjlktcq]\nOnce set oCn:CursorLication := adUseclient // 3\nand while opening recodsets, save time, energy, space and codesize (and that too with false expectations) by not specifying oRs:CursorLocation and oRs:CursorType. The recordset opened would be exactly the same as the one we open even after specifying them.\nWhen we open with connection string (not connection object) we need to specify cursorlocation, otherwise it will default to server-side cursor.",
"time": "04:53",
"topic": "ADO RecordSet: What is the best CursorType to use?",
"username": "nageswaragunupudi"
}
] |
ADO RecordSet: What is the best CursorType to use?
|
[
{
"date": "2013-06-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "NageswaraRao,\n\n[quote=\"nageswaragunupudi\":2l6vjwug]Note: If the CursorLocation property is set to adUseClient, the only valid setting for the CursorType property is adOpenStatic.[/quote:2l6vjwug]\n\nYou missed \"Remote Data Service Usage\". <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "07:49",
"topic": "ADO RecordSet: What is the best CursorType to use?",
"username": "Enrico Maria Giordano"
}
] |
ADO RecordSet: What is the best CursorType to use?
|
[
{
"date": "2013-06-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "According to MSDN, RDS has been removed from Windows 8 and Windows Server 2012. The way to go now is WCFDS.",
"time": "11:30",
"topic": "ADO RecordSet: What is the best CursorType to use?",
"username": "ADutheil"
}
] |
ADO RecordSet: What is the best CursorType to use?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.