messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat this needed for:\n\n[code=fw:1gy1fax3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_RAWLOCK<span style=\"color: #000000;\">&#40;</span> nWA, nAction, nRecNo <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// LOCAL oRecordSet := USRRDD_AREADATA( nWA )[ WA_RECORDSET ]</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/* TODO */</span><br /><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nRecNo <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nAction <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS</div>[/code:1gy1fax3]", "time": "09:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nFieldLen and FieldSize return nil\n\nI've tested in the adorrd before UR_SUPER_ADDFIELD( nWA, aField ) and the values are correct.\n\nWhat can we do?", "time": "11:06", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIt seems that in usrrdd.c are missing some functions like FieldSize FieldLen Dbrlocklist.\n\nShouldnt these also be there?", "time": "14:48", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":19z7vnbu]Antonio,\n\nWhat this needed for:\n\n[code=fw:19z7vnbu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_RAWLOCK<span style=\"color: #000000;\">&#40;</span> nWA, nAction, nRecNo <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// LOCAL oRecordSet := USRRDD_AREADATA( nWA )[ WA_RECORDSET ]</span><br /><br />   <span style=\"color: #B900B9;\">/* TODO */</span><br /><br />   HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nRecNo <span style=\"color: #000000;\">&#41;</span><br />   HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />   HB_SYMBOL_UNUSED<span style=\"color: #000000;\">&#40;</span> nAction <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS</div>[/code:19z7vnbu][/quote:19z7vnbu]\n\nIt does nothing but it is needed. In case that you need it to do something, then you can implement it.", "time": "16:04", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYou should download the complete source code for the harbour RDDs and use it to review the RDD code:\n\n[url:101t5fci]https&#58;//github&#46;com/harbour/core/tree/master/src/rdd[/url:101t5fci]", "time": "16:05", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI dont have any c expert and even so it would be dificult to understand it without proper documentation.\n\nIn order to proceed I need the following functions working:\n\n\nOrdFor()\nFieldSize() or FieldLen()\nFieldDec()\nDbrlockList() \n\nI'm in a dead end ! What do you propose?", "time": "17:14", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIts not a matter of knowing C, instead it is a matter of properly searching <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nYou asked for OrdFor().\n\n1. Is there a UR_FOR or similar in harbour\\include\\hbusrrdd.ch ?\n\nI find this:\n\n/* DBSCOPEINFO */\n#define UR_SI_BFOR 1\n#define UR_SI_CFOR 2\n\nAlso:\n\n/* DBORDERCONDINFO */\n#define UR_ORC_ACTIVE 1\n#define UR_ORC_CFOR 2\n\n2. Have we implemented those functions in adordd.prg ?\n\n3. In SQL we may need to store a string cFor value only, no need for the codeblock.\n\nI know this is not easy, but slowly we can keep going...", "time": "18:55", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote:3abooj16]1. Is there a UR_FOR or similar in harbour\\include\\hbusrrdd.ch ?[/quote:3abooj16]\n\nAs far as I see no.\n\n[quote:3abooj16]3. In SQL we may need to store a string cFor value only, no need for the codeblock.[/quote:3abooj16]\n\nIts absolutly necessary to build the selects respecting indexes order and conditions.\nIf the index is created (temporary) then on ADO_CREATE we have all info we just save it for later use.\nIf the index its usual then it must be defined previously in the index array.\nSo the problem its only with ordfor() to get the values saved.\n\n[quote:3abooj16]2. Have we implemented those functions in adordd.prg ?[/quote:3abooj16]\nWhat do you mean by those functions ?\n\nI can have such a function(s) but then I will disrupt other linked rdds, besides that since we dont have nWA we can not use it like (alias)->(ordfor(2))\n\n[code=fw:3abooj16]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> OrdFor<span style=\"color: #000000;\">&#40;</span>nOrder<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//works only for current selected &nbsp;workarea not alias->(ordfor(n))</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cTablename := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cFor := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nOrder = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;nOrder := aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cFor := aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXFOR<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>nOrder<span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; ELSEIF nOrder <= LEN<span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXES<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;cFor := aWAData<span style=\"color: #000000;\">&#91;</span>WA_INDEXFOR<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>nOrder<span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span>&nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp;<span style=\"color: #00C800;\">RETURN</span> cFor<br />&nbsp;</div>[/code:3abooj16]\n\nI think all mentioned functions must be defined at rdd level to be used correctly as they probably are in dbfcdx rdd for ex.\n\nThe adordd its working already with \"indexes\" with zero app code change and if you get an error you will have all area info.\n\n\n[code=fw:3abooj16]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp;<span style=\"color: #000000;\">20</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">ENCCLIST</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NomeRDD: <span style=\"color: #000000;\">ADORDD</span><br />&nbsp; &nbsp; &nbsp;==============================<br />&nbsp; &nbsp; &nbsp;RecNo &nbsp; &nbsp;RecCount &nbsp; &nbsp;BOF &nbsp; EOF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">34</span> &nbsp; &nbsp; &nbsp;.F. &nbsp; .F.<br /><br />&nbsp; &nbsp; &nbsp;Índices em uso &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TagName<br />&nbsp; &nbsp; &nbsp; &nbsp; => NRENCOMEND+CODIGOPROD+ARMAZEM &nbsp; &nbsp; &nbsp;ENCCPRO<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODIGOPROD+ARMAZEM+NRENCOMEND &nbsp; &nbsp; &nbsp;PROENCC<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GUIA+CODCLIENTE+CODIGOPROD+ARMAZEM MECPD<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODCLIENTE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CDENCCL<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NRFACTUR+CODCLIENTE+CODIGOPROD+ARMA PTFACT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NRFACTUR+CODIGOPROD+ARMAZEM+ANO +SE NRFPROD<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODIGOPROD+NRCONTRATO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CCONTRT<br /><br />&nbsp; &nbsp; &nbsp;Relações em uso <br />&nbsp; &nbsp; &nbsp; &nbsp; Registos fechados <br /><br />&nbsp;<span style=\"color: #000000;\">30</span>: => OFERTAS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NomeRDD: <span style=\"color: #000000;\">ADORDD</span><br />&nbsp; &nbsp; &nbsp;==============================<br />&nbsp; &nbsp; &nbsp;RecNo &nbsp; &nbsp;RecCount &nbsp; &nbsp;BOF &nbsp; EOF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span> &nbsp; &nbsp; &nbsp;.F. &nbsp; .F.<br /><br />&nbsp; &nbsp; &nbsp;Índices em uso &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TagName<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODCLIENTE+CODIGOPROD+ARMAZEM+DATAO CLIPRO<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODIGOPROD+ARMAZEM+CODCLIENTE+DATAO PROCLI<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODCLIENTE+DATAOFERTA +NUMEROOFER+C &nbsp;CLIPRO2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODIGOPROD+ARMAZEM+DATAOFERTA +NUME PROCLI2<br />&nbsp; &nbsp; &nbsp; &nbsp; => CODCLIENTE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TEMP2<br /><br />&nbsp; &nbsp; &nbsp;Relações em uso <br />&nbsp; &nbsp; &nbsp; &nbsp; Registos fechados <br />&nbsp;</div>[/code:3abooj16]\n\nDont get me wrong its not a matter of difficulty but if its in fact possible to work with our approach idea and that we are not simply loosing time as we are trying to join together two completly diferent worlds xBase and SQL.\nBesides that we have till June to have such a solution.\n\nIs there some rdd expert that could help us? How can we solve this? Can you check how its working in other rdds?", "time": "20:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI never looked at .ch.\nI understand now how it works.\n\nIve define UR_INFO and now I get the call from dbrlocklist do get the array.\n\nWe re back again", "time": "11:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nVery good! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:24", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nif you post here or provide a url to download your most recent version, I guess many users may be interested\nin testing it and surely will provide a great feedback <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:25", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIll do that maybe today after finish all locking, seeks and finds.\n\nDbrlocklist() and Dbinfo() are working <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n.\nIve checked the paramaters in hbusrdd.c\n\n[code=fw:37k6o3kx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">hb_usrInfo<span style=\"color: #000000;\">&#40;</span> AREAP pArea, HB_USHORT uiInfoType, PHB_ITEM pInfo <span style=\"color: #000000;\">&#41;</span></div>[/code:37k6o3kx]\n\nCan I assume that when we have pSomeVar its always a pointer thus passed by reference?\nThus in this case ADO_ORDERINFO(nWa, nInfo, uReturn) uReturn passed reference\n\nThe Recno() only works with :Bookmarks as:\n\n[code=fw:37k6o3kx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRecno := oRecordSet:<span style=\"color: #000000;\">BookMark</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// iif( oRecordSet:AbsolutePosition == -3, oRecordSet:RecordCount() + 1, oRecordSet:AbsolutePosition )</span><br />&nbsp;</div>[/code:37k6o3kx]\n\nThe commented line was in previous adordd but I think its safer like this. Do you agree?", "time": "12:32", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nyes I think it is fine.\n\nYou are doing a great work, congratulations! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:26", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Once you complete it, you could provide it to Harbour dev team so it will get updated in the Harbour official repository \nand you will become an official Harbour contributor <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:27", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIn order to finish network and concurrent activity I need to work with transactions.\n\nFor that I need to know if in ADORDD each time we open a new recordset its in the same connection.\n\nIts crucial to know this because transactions are per connection.\n\nDo you have any idea how to test that?", "time": "18:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAS far as I know I would say yes, but Mr. Rao is the right one to confirm us this <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "20:14", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIve already ask him in my oyher post ADO exclusive open.\n\nIt seems that in the source of tdatarow we could check that.", "time": "20:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "very good <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nI really wish that this ADO RDD gets completed and you are doing a great job <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nAdoRdd will become a great tool for harbour/xHarbour users", "time": "22:10", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDo you have idea what function OrdKeyNo and OrdKeyCount are calling in RDD ?\n\nCan you help me find that ?\n\nI cannot find it!\n\nConcerning the indexes with FOR clause to be transformed to WHERE clause for SQL. Is it common to be used in predefined indexes or only temporary indexes?\nIn our app we use it only in temporary indexes thus in the array of predefined indexes this situation is not forseen.\n\nDo yo think its worth to cover it also?", "time": "11:24", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[code=fw:447wvecn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ORDKEYNO <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;AREAP pArea = <span style=\"color: #000000;\">&#40;</span> AREAP <span style=\"color: #000000;\">&#41;</span> hb_rddGetCurrentWorkAreaPointer<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pArea <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; DBORDERINFO pOrderInfo;<br />&nbsp; &nbsp; &nbsp; memset<span style=\"color: #000000;\">&#40;</span> &pOrderInfo, <span style=\"color: #000000;\">0</span>, sizeof<span style=\"color: #000000;\">&#40;</span> pOrderInfo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pOrderInfo.itmOrder = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, HB_IT_STRING | HB_IT_NUMERIC <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pOrderInfo.atomBagName = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, HB_IT_STRING <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* Either or both may be NIL */</span><br />&nbsp; &nbsp; &nbsp; pOrderInfo.itmNewVal = <span style=\"color: #00C800;\">NULL</span>;<br />&nbsp; &nbsp; &nbsp; pOrderInfo.itmResult = hb_itemPutNL<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NULL</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; SELF_ORDINFO<span style=\"color: #000000;\">&#40;</span> pArea, DBOI_POSITION, &pOrderInfo <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; hb_itemReturnRelease<span style=\"color: #000000;\">&#40;</span> pOrderInfo.itmResult <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_DBCMD<span style=\"color: #000000;\">&#40;</span> EG_NOTABLE, EDBCMD_NOTABLE, <span style=\"color: #00C800;\">NULL</span>, HB_ERR_FUNCNAME <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span></div>[/code:447wvecn]", "time": "14:09", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:epbobjsd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ORDKEYCOUNT <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;AREAP pArea = <span style=\"color: #000000;\">&#40;</span> AREAP <span style=\"color: #000000;\">&#41;</span> hb_rddGetCurrentWorkAreaPointer<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pArea <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; DBORDERINFO pOrderInfo;<br />&nbsp; &nbsp; &nbsp; memset<span style=\"color: #000000;\">&#40;</span> &pOrderInfo, <span style=\"color: #000000;\">0</span>, sizeof<span style=\"color: #000000;\">&#40;</span> pOrderInfo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pOrderInfo.itmOrder = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, HB_IT_STRING | HB_IT_NUMERIC <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pOrderInfo.atomBagName = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, HB_IT_STRING <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* Either or both may be NIL */</span><br /><br />&nbsp; &nbsp; &nbsp; pOrderInfo.itmResult = hb_itemPutNL<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NULL</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; SELF_ORDINFO<span style=\"color: #000000;\">&#40;</span> pArea, DBOI_KEYCOUNT, &pOrderInfo <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; hb_itemReturnRelease<span style=\"color: #000000;\">&#40;</span> pOrderInfo.itmResult <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_DBCMD<span style=\"color: #000000;\">&#40;</span> EG_NOTABLE, EDBCMD_NOTABLE, <span style=\"color: #00C800;\">NULL</span>, HB_ERR_FUNCNAME <span style=\"color: #000000;\">&#41;</span>;<br /><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:epbobjsd]", "time": "14:10", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:1tsz28ls]https&#58;//github&#46;com/harbour/core/tree/master/src/rdd[/url:1tsz28ls]", "time": "14:11", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "FOR clause could be saved as a string and when you issue a SELECT command then you append FOR ...\n\nSELECT * FROM customers FOR ...", "time": "14:12", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks I think see it now its ORDINFO <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nAll locking already finished and it seems 100% compatible <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nFOR and UNIQUE on indexes are working \nIts translate to WHERE clause and DISTINCT CLAUSE in selects. <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \n\nWe are now taking care of :\n\nSCOPES to SELECT WHERE field BETWEEN value1 AND value2\n\nIndex clause NEXT translate to TOP n but for ex Oracle its ROWNUM we are checking how to solve these diferences between different SQLs\n\nSEEK and FIND\n\nSQLPARSER that we use already in other applications for ADS that transforms a normal old clipper filter expression to SQL SELECT taking in consideration active index.\n\nI have a deadline for this part of the project to 27.03 so I hope to have all done till Friday and Ill post \"clean\" code after.\n\nStill Fieldinfo its not working as we want. There are still problems with lenght and decimal places of DBF numeric fields types.\n\nCan you find out with Mr Rao how to know or force that all recordsets are opened with the same connection obj.\nThis is imperative for transactions for locking concurrency\n\nNow we ve a demand to prevent 100% SQL INJECTION. I have to study this ? Do you or Mr Rao have any ideas? \n\nCross your fingers as the most dificult part is still to come (RELATIONS)", "time": "15:01", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI just sent an email to Mr. Rao asking him for his help.\n\nYou have all my support, hopefully you complete it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:12", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nMr. Rao already answered me this:\n\n[quote:35fs1woa]1) Syntax of USE ... and DBUSEAREA. \n2) Is the recordset opened by the ADORDD? If so how does the ADORDD knows the connection object? If ADORDD opens the recordset, does it open with connectionstring or a connection object?[/quote:35fs1woa]\n\nPlease answer whatever you know regarding these questions, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:46", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote:1qpsyzz4]1) Syntax of USE ... and DBUSEAREA. [/quote:1qpsyzz4]\n\nExactly the same as for other Rdds\n\n[quote:1qpsyzz4]2) Is the recordset opened by the ADORDD? [/quote:1qpsyzz4]\n\nYes. With ADO_OPEN( nWA, aOpenInfo )\n\n[quote:1qpsyzz4]If so how does the ADORDD knows the connection object?[/quote:1qpsyzz4]\n\nIts ADRDD that opens the connection object each time USE gets called\naWAData[ WA_CONNECTION ] := TOleAuto():New( \"ADODB.Connection\" )\n\n[quote:1qpsyzz4]If ADORDD opens the recordset, does it open with connectionstring or a connection object?[/quote:1qpsyzz4]\n\nIt does it with connection object opened as indicated above.\noRecordSet:Open( aWAData[ WA_TABLENAME ], aWAData[ WA_CONNECTION ])\n\nThe problem is if I save the connection object in a STATIC var and I use it for the next call to open new recordset the app crashes.", "time": "16:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDo you mean this value ?\n\naWAData[ WA_CONNECTION ]\n\nso you can't reuse it ?\n\nthanks", "time": "16:21", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe you are closing it somewhere ?", "time": "16:23", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThe object its saved in the STATIC oADODB and its not released elsewere.\n\n[code=fw:1j8nfits]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">STATIC</span> oADODB :=<span style=\"color: #ff0000;\">\"\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ADO_OPEN<span style=\"color: #000000;\">&#40;</span>.....<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span>oADODB<span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//only first time</span><br />&nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> := &nbsp;TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Connection\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">OPEN</span><span style=\"color: #000000;\">&#40;</span>.....<br />&nbsp; &nbsp; &nbsp; &nbsp;oADODB := aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> :=oADODB <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span> &nbsp; <br />&nbsp; &nbsp;oRecordSet := &nbsp;TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span>, oADODB<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;</div>[/code:1j8nfits]", "time": "16:59", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhere is it crashing ?\n\nHave you traced the code to check where it crashes ?\n\nPlease place some MsgInfo()s or use OutputDebugString( cMsg ) (remember to load dbwin32.exe first).", "time": "17:05", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\noRecordSet:Open(...", "time": "17:08", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI am checking the properties and methods of the ADO Connection object:\n\n[url:2d9z31i7]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/ms681546(v=vs&#46;85)&#46;aspx[/url:2d9z31i7]\n\nPlease do a MsgInfo( oADODB:State ) before opening the recordset", "time": "17:23", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWe just found out that :\nRecordCount isnt always accurate:\n\nwith adUseServer (cursor supported by the provider) always return the total nr of records in table even if there is a where clause in the select like Reccount()\n\nwith adUseClient (MS ccursor ) always return the true nr of rows in the recordset\n\nThus the OrdKeyCount mainly needed for scrollbars will not function properly with adUseServer cursor!", "time": "19:15", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nMany thanks for your great feedback <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "19:25", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nOrdKeyCount and RECORDCOUNT might be a problem!\n\nThe only way to solve this is to:\n\nIf we use always adUseClient because ADO knows all rows and there ist any problem but performance decreases a lot. Not advisable!\nIF we use adUseServer then with a WHERE clause ADO returns wrong RECORDCOUNT and OrdKeyCount!\n\nThe only solution we for this is :\n\nIf there is a WHERE clause we have to query the table with SELECT COUNT(*) FROM ctable WHERE ....\nThus in each RECORDCOUNT and OrdKeyCount values are correct.\nWe replace RECORDCOUNT by the following code:\n\n[code=fw:3k3oh5zu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADORECCOUNT<span style=\"color: #000000;\">&#40;</span>nWA,oRecordSet<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//AHF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aAWData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oCon := aAWData<span style=\"color: #000000;\">&#91;</span>WA_CONNECTION<span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCount := <span style=\"color: #000000;\">0</span>, cSql:=<span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oRecordSet:<span style=\"color: #000000;\">CursorLocation</span> == adUseClient<br />&nbsp; &nbsp; &nbsp; nCount := &nbsp;oRecordSet:<span style=\"color: #000000;\">RecordCount</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span>aAWData<span style=\"color: #000000;\">&#91;</span>WA_INDEXES<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> .AND. aAWData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Making it lightning faster</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">CursorLocation</span> := adUseServer<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">CursorType</span> := adOpenForwardOnly<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRsecordSetLockType := adLockReadOnly<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//LAST PARAMTER INSERTS cSql COUNT(*) MUST BE ALL FIELDS BECAUSE IF THERE IS A NULL &nbsp; &nbsp; &nbsp; &nbsp; </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//FIELD COUNTS RETURNS WRONG</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cSql := IndexBuildExp<span style=\"color: #000000;\">&#40;</span>aAWData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span>,aAWData,.T.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//INCLUDE COUNT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"adoreccount 2 \"</span>+CSQL<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//LETS COUNT IT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">&#40;</span>cSql,oCon<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCount := oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"adoreccount 3 NRREC \"</span>+CVALTOCHAR<span style=\"color: #000000;\">&#40;</span>NCOUNT<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//RETURNING TO DEFAULT DATA</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">CursorType</span> := adOpenDynamic<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">CursorLocation</span> := adUseServer <span style=\"color: #B900B9;\">//adUseClient never use ths very slow!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">LockType</span> := adLockPessimistic<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cSql := IndexBuildExp<span style=\"color: #000000;\">&#40;</span>aAWData<span style=\"color: #000000;\">&#91;</span>WA_INDEXACTIVE<span style=\"color: #000000;\">&#93;</span>,aAWData,.F.<span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//.F. DONT INCLUDE COUNT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"adoreccount 4 \"</span>+CSQL<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">&#40;</span>cSql,oCon<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCount := &nbsp;oRecordSet:<span style=\"color: #000000;\">RecordCount</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span> &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> nCount &nbsp; <br /><br />&nbsp;</div>[/code:3k3oh5zu]\n\nDo you have any other alternative? This function its called a lot and I dont know what will be effect in the overall performance. In our small trials it seems ok but .....\n\nI miss good old DBF or ADS:(", "time": "12:32", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAs far as I know oRs:RecordCount() returns the number of records of the recordset\nso if you use a WHERE clause then you get less records.\n\nLets ask Mr. Rao", "time": "16:57", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":135057oe]If we use always adUseClient because ADO knows all rows and there ist any problem but performance decreases a lot.[/quote:135057oe]\n\nUsing adUseClient the performance is better than adUseServer!\n\nEMG", "time": "17:02", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\n[quote=\"Enrico Maria Giordano\":14svmhi4]Antonio,\n\n[quote=\"AHF\":14svmhi4]If we use always adUseClient because ADO knows all rows and there ist any problem but performance decreases a lot.[/quote:14svmhi4]\n\nUsing adUseClient the performance is better than adUseServer!\n\nEMG[/quote:14svmhi4]\n\nWhat DB you use?\n\nadUseClient would be much easier for adordd (bookmarks etc) but everything I read covering this indicates that adUseClient its much slower and should be avoid.\n\nPlease note that the I'm using SELECT * FROM ... in adordd thats its really not good SQL practice but compatibility much be achieved.", "time": "17:39", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":4gck81zf]Antonio,\n\nAs far as I know oRs:RecordCount() returns the number of records of the recordset\nso if you use a WHERE clause then you get less records.\n\nLets ask Mr. Rao[/quote:4gck81zf]\n\nOpening same dbf in 2 dif areas \n\nOne with normal index the RECORDCOUNT = nr of records dbf = ORDKEYCOUNT\nSecond with conditional index SELECT WHERE ... the RECORDCOUNT = nr of records dbf <> ORDKEYCOUNT that is = nr of records within the WHERE clause.\nMoving through the recordset will soon or later get an error.\nPlease note that the recordset has in fact only the records within the condition although RECORDCOUNT reports all records.\n\nThis is using serverside cursor.", "time": "17:49", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":1or9letu]What DB you use?[/quote:1or9letu]\n\nMDB, MSSQL and MySQL.\n\n[quote=\"AHF\":1or9letu]adUseClient would be much easier for adordd (bookmarks etc) but everything I read covering this indicates that adUseClient its much slower and should be avoid.[/quote:1or9letu]\n\nadUseClient is faster in my experience.\n\n[quote=\"AHF\":1or9letu]Please note that the I'm using SELECT * FROM ... in adordd thats its really not good SQL practice but compatibility much be achieved.[/quote:1or9letu]\n\n???\n\nSELECT * FROM is the base of all SQL queries. What else would you want to use?\n\nEMG", "time": "18:29", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":dr97q009][quote=\"AHF\":dr97q009]Please note that the I'm using SELECT * FROM ... in adordd thats its really not good SQL practice but compatibility much be achieved.[/quote:dr97q009]\n\n???\n\nSELECT * FROM is the base of all SQL queries. What else would you want to use?\n\nEMG[/quote:dr97q009]\n\nI mean avoid loading all the fields instead of just the ones we need for the task.", "time": "18:57", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\n\n[quote=\"AHF\":20bqh5nm]I mean avoid loading all the fields instead of just the ones we need for the task.[/quote:20bqh5nm]\n\nOk, but what if I need all the fields? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "19:02", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":yp4xe9qn]Antonio\n\n[quote=\"AHF\":yp4xe9qn]I mean avoid loading all the fields instead of just the ones we need for the task.[/quote:yp4xe9qn]\n\nOk, but what if I need all the fields? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG[/quote:yp4xe9qn]\n\nThen SELECT colname FROM table unfortunatly in adordd its always all the fields! Its the price for no code change.", "time": "19:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":2n0penk5]Then SELECT colname FROM table unfortunatly in adordd its always all the fields! Its the price for no code change.[/quote:2n0penk5]\n\nOk, I see, you're right.\n\nEMG", "time": "19:28", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nCan you find rdd function for close all ?", "time": "19:58", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nUR_FIELDINFO ?", "time": "23:18", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Do you mean DbCloseAll() ?\n\nI think you have to implement UR_CLOSE", "time": "06:41", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat is this for ?\n\nHB_SYMBOL_UNUSED( nWA )", "time": "09:13", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":47e899kj]Antonio,\n\nWhat is this for ?\n\nHB_SYMBOL_UNUSED( nWA )[/quote:47e899kj]\n\nTo avoid unused variable warning.\n\nEMG", "time": "10:37", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nThanks", "time": "10:39", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIve made some changes to the function FWAdo... because ws returning wrong types and n decimals.\n\nThese replaced the former functions in adordd ADOGETFIELDSIZE AND DOGETFIELDTYPE.\n\nIt seems to be correct but Im not sure.\n\nCould you or someone check the code below for some bugs?\n\nThere are also some questions marks to answer if someone knows.\n\n\n[code=fw:1q29talo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_FIELDSTRUCT<span style=\"color: #000000;\">&#40;</span> oRs, n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( oRs, nFld ) where nFld is 1 based</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// ( oRs, oField ) or ( oRs, cFldName )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// ( oField )</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oField, nType, uval<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cType := <span style=\"color: #ff0000;\">'C'</span>, nLen := <span style=\"color: #000000;\">10</span>, nDec := <span style=\"color: #000000;\">0</span>, lRW := .t.,nDBFFieldType := &nbsp;HB_FT_STRING <span style=\"color: #B900B9;\">// default</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nFWAdoMemoSizeThreshold := <span style=\"color: #000000;\">1024</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; &nbsp;cType DBF TYPE \"C\",\"N\",\"D\" ETC<br />&nbsp; &nbsp; &nbsp;nDBFFieldType HB_FT_STRING ETC<br />&nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/* IF n == nil<br />&nbsp; &nbsp; &nbsp; oField &nbsp; &nbsp; &nbsp;:= oRs<br />&nbsp; &nbsp; &nbsp; oRs &nbsp; &nbsp; &nbsp; &nbsp; := nil<br />&nbsp; &nbsp;ELSEIF VALTYPE( n ) == 'O'<br />&nbsp; &nbsp; &nbsp; oField &nbsp; &nbsp; &nbsp;:= n<br />&nbsp; &nbsp;ELSE<br />&nbsp; &nbsp; &nbsp; IF ValType( n ) == 'N'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n--<br />&nbsp; &nbsp; &nbsp; ENDIF<br />&nbsp; &nbsp; &nbsp; TRY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oField &nbsp; &nbsp; &nbsp;:= oRs:Fields( n )<br />&nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp;IF oField == nil<br />&nbsp; &nbsp; &nbsp; RETURN nil<br />&nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;oField &nbsp; &nbsp; &nbsp;:= oRs:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nType &nbsp; &nbsp; &nbsp; := oField:<span style=\"color: #000000;\">Type</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nType == adBoolean<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'L'</span><br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_LOGICAL<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adDate, adDBDate, adDBTime, adDBTimeStamp <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'D'</span><br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := <span style=\"color: #000000;\">8</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oRs != <span style=\"color: #00C800;\">nil</span> .AND. ! oRs:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> .AND. VALTYPE<span style=\"color: #000000;\">&#40;</span> uVal := oField:<span style=\"color: #000000;\">Value</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">'T'</span> <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//.AND. FW_TIMEPART( uVal ) >= 1.0 WHERE IS THIS FUNCTION?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cType &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'@'</span> <span style=\"color: #B900B9;\">//'T'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLen := oField:<span style=\"color: #000000;\">DefinedSize</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDBFFieldType := HB_FT_TIMESTAMP <span style=\"color: #B900B9;\">// DONT KNWO IF IT IS CORRECT!</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDBFFieldType := HB_FT_DATE<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adTinyInt, adSmallInt, adInteger, adBigInt, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adUnsignedTinyInt, adUnsignedSmallInt, adUnsignedInt, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adUnsignedBigInt <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cType &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'N'</span><br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := oField:<span style=\"color: #000000;\">Precision</span> + <span style=\"color: #000000;\">1</span> &nbsp;<span style=\"color: #B900B9;\">// added 1 for - symbol</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oField:<span style=\"color: #000000;\">Properties</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ISAUTOINCREMENT\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> == .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cType := <span style=\"color: #ff0000;\">'+'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRW &nbsp; := .f.<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adSingle, adDouble, adCurrency <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'N'</span> <span style=\"color: #B900B9;\">//SHOULDNT BE \"B\"?</span><br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := <span style=\"color: #0000ff;\">MIN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">19</span>, oField:<span style=\"color: #000000;\">Precision</span>-oField:<span style=\"color: #000000;\">NumericScale</span><span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//+ 2 )</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oField:<span style=\"color: #000000;\">NumericScale</span> > <span style=\"color: #000000;\">0</span> .AND. oField:<span style=\"color: #000000;\">NumericScale</span> < nLen<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDec &nbsp;:= oField:<span style=\"color: #000000;\">NumericScale</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER <span style=\"color: #B900B9;\">//HB_FT_DOUBLE WICH ONE IS CORRECT?</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adDecimal, adNumeric, adVarNumeric <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'N'</span><br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">19</span>, oField:<span style=\"color: #000000;\">Precision</span>-oField:<span style=\"color: #000000;\">NumericScale</span><span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//+ 2 )</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oField:<span style=\"color: #000000;\">NumericScale</span> > <span style=\"color: #000000;\">0</span> .AND. oField:<span style=\"color: #000000;\">NumericScale</span> < nLen<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDec &nbsp;:= oField:<span style=\"color: #000000;\">NumericScale</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER <span style=\"color: #B900B9;\">//HB_FT_LONG WICH ONE IS CORRECT?</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adBSTR, adChar, adVarChar, adLongVarChar, adWChar, adVarWChar, adLongVarWChar <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := oField:<span style=\"color: #000000;\">DefinedSize</span><br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nType != adChar .AND. nType != adWChar .AND. nLen > nFWAdoMemoSizeThreshold<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cType := <span style=\"color: #ff0000;\">'M'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLen &nbsp;:= <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDBFFieldType := HB_FT_MEMO<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adBinary, adVarBinary, adLongVarBinary <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType := <span style=\"color: #ff0000;\">\"G\"</span><br />&nbsp; &nbsp; &nbsp; nLen &nbsp; &nbsp; := oField:<span style=\"color: #000000;\">DefinedSize</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nType != adBinary .AND. nLen > nFWAdoMemoSizeThreshold<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cType := <span style=\"color: #ff0000;\">'M'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLen &nbsp;:= <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_OLE<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nType != adBinary .AND. nLen > nFWAdoMemoSizeThreshold<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDBFFieldType := HB_FT_MEMO<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adChapter, adPropVariant<span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">'O'</span><br />&nbsp; &nbsp; &nbsp; lRW &nbsp; &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_MEMO<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adVariant, adIUnknown <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <br /><br />&nbsp; &nbsp; &nbsp; cType := <span style=\"color: #ff0000;\">\"V\"</span><br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_ANY<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adGUID <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adFileTime <span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cType := <span style=\"color: #ff0000;\">\"T\"</span>&nbsp; <br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DATETIME<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;ELSEIF ASCAN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> adEmpty, adError, adUserDefined, adIDispatch &nbsp;<span style=\"color: #000000;\">&#125;</span>, nType <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span>&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cType = <span style=\"color: #ff0000;\">'O'</span><br />&nbsp; &nbsp; &nbsp; lRw := .t.<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_NONE <span style=\"color: #B900B9;\">//what is this? maybe NONE is wrong!</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; lRW &nbsp; &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lAnd<span style=\"color: #000000;\">&#40;</span> oField:<span style=\"color: #000000;\">Attributes</span>, 0x72100 <span style=\"color: #000000;\">&#41;</span> .OR. ! lAnd<span style=\"color: #000000;\">&#40;</span> oField:<span style=\"color: #000000;\">Attributes</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; lRW &nbsp; &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#123;</span> oField:<span style=\"color: #0000ff;\">Name</span>, cType, nLen, nDec, nType, lRW, nDBFFieldType <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp;</div>[/code:1q29talo]", "time": "14:42", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI am afraid that the only way to really test it is once it becomes used by several Harbour/xharbour users", "time": "16:45", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat I dont understad is what type of fields we must return to SUPER!\nIs it only STRING, DATE, LOGICAL, DOUBLE OR INTEGER as in arrayrdd?\n\nIm now taking care of :Seek but I need to use DB indexes. Seek cannot be translated to :Find as :Find only works on a single column.\n\nDo you code code use index present in the server DB with ADOX? Maybe Enrico has it.\n\nIm only missing this to close the first part of adodrdd\n\nI hope to post during week end the adordd.", "time": "17:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYes, you can only return the types that Harbour supports.\n\nWhat if you issue a new SELECT clause with the WHERE conditions that you are searching for ?", "time": "17:14", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":ua6eh17q]Do you code code use index present in the server DB with ADOX? Maybe Enrico has it.[/quote:ua6eh17q]\n\nNo, I prefer to use WHERE and ORDER BY clauses.\n\nEMG", "time": "17:19", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Enrico,\n\nI know I shouldnt use ADOX!\nI agree is the best practice. Indexes are for the DB admin to deliver selects rapidly.\n\nBut dont forget that what we pretend is to change as little code as possible in our app.\n\nI could use seek but then I would have to call a resetseek() to come back to the previous select. Doesnt seems a huge work.\nBut if I need to add blanck recs to the select to come back later for update I would not found them because they still dont fill the select where clause.This is a problem! Maybe using a diferent cursor?\n\nDo you have any idea how to workaround this?", "time": "17:44", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":1oh4b7mn]I know I shouldnt use ADOX![/quote:1oh4b7mn]\n\nPlease note that ADOX is only supported by Microsoft databases.\n\nEMG", "time": "18:33", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nForgot ADOX going into SELECT.", "time": "19:13", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Use oRs:Filter instead of WHERE, so setting oRs:Filter := \"\" will make have you have all of them when you need them", "time": "20:02", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nFilter property has some limitations:\n\n[url:194r5bys]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/ee275540(v=bts&#46;10)&#46;aspx[/url:194r5bys]\n\nEMG", "time": "20:25", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks but it seems filter its not advisable and compatible with all providers.\n\nIll give a try with selects", "time": "20:29", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIn ADO_OPEN we load all fieldinfo UR_SUPER_ADDFIELD( nWA, aField ).\n\nHow can we get back after the information save there?", "time": "21:02", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks its solved.\n\nI need this hb_SToD() What does it do and were can I find it?\n\nCan you post the source?", "time": "08:48", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":3u0iws8o]Antonio,\n\nYes, you can only return the types that Harbour supports.[/quote:3u0iws8o]\n\nAre these all the types supported by (x)Harbour?\n\n[code=fw:3u0iws8o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/* FIELD types */</span><br />#ifndef HB_FT_NONE<br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_STRING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"C\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_LOGICAL &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">2</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"L\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_DATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"D\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_LONG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">4</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"N\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_FLOAT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">5</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"F\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_INTEGER &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">6</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"I\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_DOUBLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">7</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"B\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_TIME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">8</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"T\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_TIMESTAMP &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">9</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">/* \"@\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_MODTIME &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">10</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"=\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_ROWVER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">11</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"^\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_AUTOINC &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">12</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"+\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_CURRENCY &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">13</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"Y\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_CURDOUBLE &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">14</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"Z\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_VARLENGTH &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">15</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"Q\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_MEMO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">16</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"M\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_ANY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">17</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"V\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_IMAGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">18</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"P\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_BLOB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">19</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"W\" */</span><br /><span style=\"color: #00D7D7;\">#define</span> HB_FT_OLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">20</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">/* \"G\" */</span><br />#endif<br />&nbsp;</div>[/code:3u0iws8o]", "time": "08:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Those types are in Harbour hbusrrdd.ch so I guess yes, not sure if xHarbour is exactly the same", "time": "09:16", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nOk Im using those. Cross my fingers!\n\nHow to use SQL CONVERT to convert expressions like dtos(ddate)+val(ndays) ?\n\nDoes anyone has a CH file with all defs for CONVERT ?", "time": "10:27", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,Enrico,\n\nDo you know What is the corresponding SQL SELECT ... CONVERT to dtos()?", "time": "12:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":1js1vbez]Do you know What is the corresponding SQL SELECT ... CONVERT to dtos()?[/quote:1js1vbez]\n\n[code=fw:1js1vbez]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">SELECT</span> * <span style=\"color: #0000ff;\">FROM</span> table <span style=\"color: #0000ff;\">WHERE</span> date = <span style=\"color: #ff0000;\">'20150328'</span></div>[/code:1js1vbez]\n\nEMG", "time": "12:40", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nThanks but my question was not clear\n\nThis is to be used in :find expression and I get this error.\n\nArgs:\n [ 1] = C DATAFACTUR LIKE '20140407'\n argumentos { DATAFACTUR LIKE '20140407' }\n descrição DISP_E_UNKNOWNNAME\n ficheiro <nenhuma>\n genCode 41: Unknown or reserved\n operação FIND\n osCode (Não é erro do sistema operativo)\n severity 2\n subCode 6\n subSystem ADODB.Recordset\n tries 0\n\nCan :find look for date like that ?", "time": "13:51", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"AHF\":ei5njxhh]DATAFACTUR LIKE '20140407'[/quote:ei5njxhh]\n\nTry with:\n\nDATAFACTUR = '20140407'\n\nIf you are using MDB try this instead:\n\n[code=fw:ei5njxhh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">DATAFACTUR = #<span style=\"color: #000000;\">04072014</span>#</div>[/code:ei5njxhh]\n\n(DD/MM/YYYY)\n\nEMG", "time": "14:11", "topic": "ADO RDD xHarbour", "username": "Enrico Maria Giordano" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[url:1bpbxxmd]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/ms676117%28v=vs&#46;85%29&#46;aspx[/url:1bpbxxmd]\n\nIt seems that this format is needed:\n\nDATAFACTUR = #7/22/97#", "time": "14:03", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Enrico,\n\n:Find with '20150327' or \"20150327\" and #20150327# doesnt work always same error.\n\n:Find with 27/03/15 works in all above cases.\n\nI could make a function \n\n[code=fw:2ptvo4bv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ADODTOS<span style=\"color: #000000;\">&#40;</span>dDate<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; <span style=\"color: #00C800;\">IF</span> RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"ADORDD\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> DTOC<span style=\"color: #000000;\">&#40;</span>dDate<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; <span style=\"color: #00C800;\">RETURN</span> DTOS<span style=\"color: #000000;\">&#40;</span>dDate<span style=\"color: #000000;\">&#41;</span><br />&nbsp; <br />&nbsp;</div>[/code:2ptvo4bv]\n\nand replace in code dtos with adodtos.\n\nBut a more clean approach was to redesign the original DTOS to cover this.\n\nWhat is your opinion?", "time": "17:06", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIn ADO_GETVALUE there is a function hb_stod I dont know why!\n\nShould I use stod", "time": "17:11", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Decided different approach. What do you think?\n\n[code=fw:2qhifmbg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADODTOS<span style=\"color: #000000;\">&#40;</span>xDate<span style=\"color: #000000;\">&#41;</span><br />&nbsp;<span style=\"color: #00C800;\">LOCAL</span> dDate ,cYear,cMonth,cDay<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> <span style=\"color: #ff0000;\">\".\"</span> IN xDate .OR. <span style=\"color: #ff0000;\">\"-\"</span> IN xDate .OR. <span style=\"color: #ff0000;\">\"/\"</span> IN xDate<br />&nbsp; &nbsp; &nbsp; &nbsp;dDate := xDate<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cYear &nbsp;:= <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>xDate,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; cMonth := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>xDate,<span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; cDay &nbsp; := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>xDate,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; dDate &nbsp;:= CTOD<span style=\"color: #000000;\">&#40;</span>cDay+<span style=\"color: #ff0000;\">\"/\"</span>+cMonth+<span style=\"color: #ff0000;\">\"/\"</span>+cYear<span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> DTOC<span style=\"color: #000000;\">&#40;</span>dDate<span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2qhifmbg]", "time": "17:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIf it works then keep going, later on we can always modify it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:40", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Different date literal formats work with different SQL databases and also depending on settings.\n\nInterestingly American dateformats work with many, because all the software is written by programmers (whatever be their nationality) sitting in USA. But we better stick to international formats.\n\nBut the following formats always work irrespective of locale, wherever in the world, and irrespective of locale settings:\n\nOracle:\nWHERE DATEFLD = DATE 'YYYY-MM-DD'\n\nMsSql, MySql and many others\n\nWHERE DATEFLD = 'YYYY-MM-DD'\n\nMSAccess\n\nWHERE DATEFLD = #YYYY-MM-DD#\n\nFor ADO FILTERS, irrespective of the datasource.\n\noRs:Filter = \"DATEFLD = #YYYY-MM-DD#\"\n\nNote: \n1) I know may alternative formats which work with different databases. But here I gave those that work for sure and simple to make.\n2) FW_DateToADO() and FW_DateToSQL() may be referred to in the adofuncs.prg", "time": "09:29", "topic": "ADO RDD xHarbour", "username": "nageswaragunupudi" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "FW_ValToSQL( anyvalue ) in adofuncs.prg\nmay also be seen\n\nI suggest there is no need to reinvent anything.", "time": "09:31", "topic": "ADO RDD xHarbour", "username": "nageswaragunupudi" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Rao,\n\nWith your help and ADO expertise, AdoRdd can turn into a great tool <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nMany thanks for joining this thread", "time": "09:45", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Great help! Thanks Mr. Rao!\n\nCan you post those functions here as I dont have them?\n\nIm working on Seeks transforming it into :find or SELECT as one or more fields present in the expression.\n\nIm stucked in a problem when we use lSoftSeek.\n\nDo you have any idea how to emulate that with Sql?", "time": "10:37", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "We can implement Seeks and Locates using Ado Find.\n\nLimitations are that Find works with only one field.\n\nYou may examine XBrowse incremental seek for ado for the logic.\n\nFor seek we may use\nFLDNAME LIKE <cseek>* (char)\nFLDNAME = <cseek> (other)\nSoftseek\nFLDNAME >= <cseek> \n\nI hope you are using FWH, you can refer to xbrowse.prg for implementation of seek\nand adofuncs.prg for the functions I referred to in earlier post", "time": "11:11", "topic": "ADO RDD xHarbour", "username": "nageswaragunupudi" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI dont have those ado functions can you send the file to me ?\n\nYou can download adordd from <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd.git\">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->\n\nSet rdd to adordd\nAdd your index files to ListIndex() accordingly to the specs.\nAll temp name index files must be present in ListTmpNames() \"TMP\",\"TEMP\"\n\nReady:\nOpen\nClose\nIndexes\nLocks\nNavigation\nFind\ndbinfo\nordinfo\nSeek (without lSoftSeek)", "time": "12:00", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAlready sent to your email\n\nmany thanks for sharing it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nyou are doing a great work, hopefully it gets completed very soon!", "time": "13:10", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIF UPPER(SUBSTR(cOrder,1,3)) IN aTempFiles .OR. UPPER(SUBSTR(cOrder,1,4)) [b:1dskhk9h]IN aTempFiles [/b:1dskhk9h]\n\nthis only works with xHarbour.\n\nI advise you not to code like this, as Harbour users, the majority, won´t be able to try and test it.\n\nWith your latest additions it only gives the above error.\n\nThank you.", "time": "13:05", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nVery great news!!.\n\nWhen the code is mature, please tell me to test it with a real application.\n\nThank you very much,", "time": "08:30", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nThanks Ill do that.\n\nBut you can try it already.\n\nSee adordd.prg and adordd.ch (only locates need to be redefined) \nYou need to fill the index array with your indexes and thats it.\n\nRelations, Set scopes are undergoing.\n\nYou will understand the approach and see how it works for you.", "time": "11:01", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIm finishing Set Scopes.\nWhat is the normal behaviour?\n\nThe scope if not cleared it remains with the index athough we change orders?\n\nI mean :\n\n[code=fw:kbn0esi2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />sele <span style=\"color: #000000;\">0</span><br />use xtable<br />set <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">to</span> index1,index2<br />set order <span style=\"color: #0000ff;\">to</span> index1<br /><br />set scope <span style=\"color: #0000ff;\">to</span> exp1,exp2<br /><br />browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//with scope</span><br /><br />set order <span style=\"color: #0000ff;\">to</span> index2<br /><br />Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//wihtout scope</span><br /><br />set order <span style=\"color: #0000ff;\">to</span> index1<br /><br />browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// the scope becomes active or not?</span><br /><br />&nbsp;</div>[/code:kbn0esi2]\n\nPlease resend also the requested functions see my email.", "time": "11:07", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI am sorry but I don´t understand what you said about indexes.\n\nCan yo please be more specific?.\n\nAlso, have you modified original adordd.ch?.\n\nIn my previous tests, this is a sample I tested:\n\n[code=fw:3eonanuy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"adordd.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"adordd.prg\"</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br />REQUEST ADORDD<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; <br />&nbsp; USE dolphin_man &nbsp; VIA <span style=\"color: #ff0000;\">\"ADORDD\"</span> &nbsp; TABLE <span style=\"color: #ff0000;\">\"clientes\"</span> &nbsp; MYSQL ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"dolphintest.sitasoft.net\"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; USER <span style=\"color: #ff0000;\">\"test_dolphin\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PASSWORD <span style=\"color: #ff0000;\">\"123456\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"DEMO\"</span><br /><br /><br /><br />&nbsp; <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"DEMO\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; MSGALERT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">ALIAS</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, RECNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; DEMO-><span style=\"color: #000000;\">&#40;</span> &nbsp;dbgotop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br />&nbsp; <br />&nbsp; APPEND BLANK<br /><br />&nbsp; REPLACE FIELD->NOME &nbsp; WITH <span style=\"color: #ff0000;\">\"LUCAS DE BELTRAN\"</span><br />&nbsp; REPLACE FIELD->EMAIL &nbsp;WITH <span style=\"color: #ff0000;\">\"NOSPAM@GMAIL.COM\"</span><br /><br />&nbsp; DBGOTOP<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <br />&nbsp; <span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <br /><br />&nbsp; &nbsp;USE<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:3eonanuy]", "time": "11:15", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nThe adordd us being altered in order to keep the same dbf app logic applied to any source data.\n\nSaying that the indexes in the adordd are virtual as they dont exist as files! (see adordd ordlstadd, orslstfocus and listindex )\n\nIn fact the indexes are selects order by the defined \"index order\" in the indexes array so that one can continue to use the same exactly the same syntax as before without SQL.\n\nIf you dont have indexes your tests for you the adordd its like before. \n\nSee adordd to understand what I mean.\n\nMy goal its to achieve total 100% dbf syntax with any data source thus using adordd without changing any code. (I know with some performanc degradation but its impossible otherwise)\n\nPlease comment the following lines in ado_open() and ty it.\n\n hb_adoSetEngine( \"\")\n hb_adoSetServer( \"\")\n hb_adoSetQuery( )\n hb_adoSetUser( \"\")\n hb_adoSetPassword( \"\" )\n\nIm using this for my testings only.", "time": "11:56", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI would like to test with indexes, because that was the only lack in adordd.prg provided within Harbour.\n\nI also use ordsetfocus(), i e:\n\n[code=fw:trvc9zbc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">CLIENTES-><span style=\"color: #000000;\">&#40;</span> &nbsp;OrdSetFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"CLIENTES1\"</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span></div>[/code:trvc9zbc]\n\nThank you.", "time": "12:24", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nGo to ListIndex in adordd and add to the index array wahtever you want respecting the aray spec:\n\n{ {\"TABLENAME\",{\"INDEXNAME\",\"INDEXKEY\",\"WHERE EXPRESSION AS USED FOR FOREXPRESSION\",\"UNIQUE - DISTINCT ANY SQL STAT BEFORE * FROM\"} }\n\nex.\n{{\"CLIENTES1\",{\"PAISCLIENTE\",\"WHERE PAISCLIENTE = ' BRASIL'\", \"DISTINCT\"}}\n\nits equal to INDEX PAISCLIENTE FOR PAISCLIENTE = ' BRASIL' UNIQUE\n\nIf you see that the order its not like before just adjust the index expression for sql in the index array.\n\nWhen you create an index its always considered temporary only exist during the application runtime.\nIn this case adordd checks the temp names in the ListTmpNames. If your temp name doesnt start with any of those you will get after a ors:open error.\n\nBut if you want you can add your your temp names to that array. Please remember that only its checkeed for the temp names till 4th position in the name.\nHere you dont need to ave the expressions because ordecreate will supply them to adordd thatsaves them.\n\nThats it <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:50", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you.\n\nIn your git there is no adordd.ch:\n\n[img:nhdyr20d]http&#58;//i60&#46;tinypic&#46;com/2a8qqhg&#46;png[/img:nhdyr20d]", "time": "13:01", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nAntonio do need feedback so you are very welcome to this thread <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThanks for testing and helping Antonio!", "time": "13:38", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, it is a very exciting contribution.\n\nI am going to test it with a full application, not a simple sample.\n\nI just nedd latest adordd.ch, as it is not in Antonio´s guithub.\n\nHope we achieve this goal for the community.", "time": "13:40", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Lucas,\n\nFlle is there already.\n\nI didnt change adordd.ch file its the original of Harbour.", "time": "15:00", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease see my email I could not receive the prg file.", "time": "15:02", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Very interesting contribution <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "15:21", "topic": "ADO RDD xHarbour", "username": "hmpaquito" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nordscope() is calling ordinfo().\n\nThe array is with 6 elements but I cant find out what they refer to.\n\nThe 4th ele seems to be the scope value what are the others (empty) ?\n\nCan you help me tracking this?", "time": "15:51", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI just resent it to you as a zip file", "time": "15:57", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote:2y0721cw]The array is with 6 elements but I cant find out what they refer to.\n\nThe 4th ele seems to be the scope value what are the others (empty) ?[/quote:2y0721cw]\n\nCould you copy that source code here ? thanks", "time": "16:48", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour