messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2015-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI'm think the only low cost way to use ADO is through an RDD for it.\n\nIf I'm startint from scratch or I have the process in a kind of Tdata object then pure ADO its ok but I think the big majority of Harbour users have still lots of \"old\" code thus it is very costly to adapt it.\n\nI'm not so aware how to write RDD's <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> .I'm checking adordd.prg but there are some things I do not know how they work. Is there some docs that can help me?", "time": "11:24", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nlets do one thing. Go ahead and test it with some minor examples and I will help you from here.\n\nIf you get blocked, I will help you how to solve it and you will start understading it.\n\nit is easier than it seems once you start working on it. \n\nAnd again, this could help lots of users. So surely others will help you <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nTomorrow I am flying to Barcelona and will stay busy for a week or so, I take my laptop with me and an android tablet to play with FiveTouch <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\n\nI will try to attend the forums and all of you, whenever I have some free time", "time": "11:33", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAgreed. I'm crossing my fingers.\n\nFirst I'm trying to connect to traditional DBF files. \n\nI have in Odbc UserDsn a VisualFoxpro driver.\n\nThe properties are:\n \"Microsoft FoxPro VFP Driver (*.dbf)\"\n \"DSN=DBF trial\"\n \"SourceDB=\"+folder with dbfs\n \"Description=ODBC for ADO\"\n \"SourceType=DBF\"\n \"BackgroundFetch=Yes\"\n \"Exclusive=No\"\n \"Null=Yes\"\n \"Deleted=Yes\"\n \"Collate=Machine\"\n \"SetNoCountOn=No\"\n\nMy con string is :\n \t aWAData[ WA_CONNECTION ]:Open( \"Provider=Microsoft.Jet.OLEDB.4.0;SourceDB=c:\\dbfs\" + \";Extended Properties=Microsoft foxpro VFP Driver (*.dbf);SourceType=DBF;User ID=;Password=;\" )\nIt seems I get the connection.\n\nWhen I run\n oRecordSet:Open( aWAData[ WA_QUERY ] + aWAData[ WA_TABLENAME ], aWAData[ WA_CONNECTION ] )\nI get this error:\n\n Args:\n [ 1] = C SELECT * FROM INSTALA\n [ 2] = O SELECT * FROM INSTALA\n argumentos { SELECT * FROM INSTALA, TOLEAUTO Object }\n descrição DISP_E_UNKNOWNNAME\n ficheiro <nenhuma>\n genCode 41: Unknown or reserved\n operação OPEN\n osCode (Não é erro do sistema operativo)\n severity 2\n subCode 6\n subSystem ADODB.Recordset\n tries 0\n\nWith or without path I get the same error. \nShall I supply always path name in the fie string?\nWith indexes the same?\n \nBesides this I notice there are missing some traditional RDD functions:\nOrdSetFocus()\nRecno()\nHow do we implement Recno() in traditional SQLdatabases?\n\nCan I creat it like this:\naMyFunc[ UR_ORDSETFOCUS ] := ( @ADO_ORDSETFOCUS() )\nI assume that when callig OrdSetFocus() the ADO_ORDSETFOCUS() will execute.", "time": "12:29", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm using xHarbour 30.09.2008 and FW 8 and ado.prg from harbour 3.0.0.\n\nI had to change in ado.prg win_OleCreateObject to CreateObject\n\nI make a connection\n.....\n cStr := CFILEPATH(aOpenInfo[ UR_OI_NAME ]) \n cStr := SUBSTR(cStr,1,LEN(Cstr)-1)\n \n aWAData[ WA_CONNECTION ]:Open( \"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"+cstr+;\n \";Extended Properties=dBASE IV;User ID=;Password=\")\t \n......\n UR_SUPER_SETFIELDEXTENT( nWA, nTotalFields := oRecordSet:Fields:Count )\n..... \nRecordsetopen \"SELECT * FROM [INSTALA.DBF]\nmsginfo(\"Connected? \"+cvaltochar(aWAData[ WA_CONNECTION ]:State= adStateOpen)) TRUE\nMSGINFO(\"NUMBER OF FIELDS \"+STR(nTotalFields)) = 22 CORRECT\n\n FOR n := 1 TO nTotalFields\n aField := Array( UR_FI_SIZE )\n [b:26olkfvu] aField[ UR_FI_NAME ] := oRecordSet:Fields( n - 1 ):Name[/b:26olkfvu] //ERROR LINE 428\n aField[ UR_FI_TYPE ] := ADO_GETFIELDTYPE( oRecordSet:Fields( n - 1 ):Type )\n aField[ UR_FI_TYPEEXT ] := 0\n aField[ UR_FI_LEN ] := ADO_GETFIELDSIZE( aField[ UR_FI_TYPE ], oRecordSet:Fields( n - 1 ):DefinedSize )\n aField[ UR_FI_DEC ] := 0\n#ifdef UR_FI_FLAGS\n aField[ UR_FI_FLAGS ] := 0\n#endif\n#ifdef UR_FI_STEP\n aField[ UR_FI_STEP ] := 0\n#endif\n UR_SUPER_ADDFIELD( nWA, aField )\n NEXT\n\nI get this error:\n\nError description\n=================\n Args:\n [ 1] = N 203000288\n [ 2] = N 203000288\n [ 3] = N 203000288\n [ 4] = C 203000288\n [ 5] = A 203000288\n argumentos { 203000288, 0, 2, {00001564-0000-0010-8000-00AA006D2EA4}, }\n descrição Invoke failed\n ficheiro <nenhuma>\n genCode 1: EG_ARG\n operação __OLEINVOKEDISPATCH\n osCode (Não é erro do sistema operativo)\n severity 2\n subCode 6001\n subSystem BASE\n tries 0\n=================\n\nStack\n\n Chamado de __OLEINVOKEDISPATCH(0)\n Chamado de (b)ADODB.RECORDSET.6.0:WRAPINTERFACE(801)\n Chamado de ADODB.RECORDSET.6.0:FIELDS(0)\n Chamado de ADO_OPEN(428)\n Chamado de DBUSEAREA(0)\n\nUsed classes\n\n 25 TYPELIB\n 26 ENUMTYPEINFO\n 27 CONSTANTTYPEINFO\n 28 OBJECTTYPEINFO\n 29 INTERFACETYPEINFO\n 30 METHODTYPEINFO\n 31 ARGUMENTTYPEINFO\n 32 PROPERTYTYPEINFO\n 33 TOLEAUTO\n 34 OLEWRAPPER\n 35 ADODB.CONNECTION.6.0\n 36 {00000514-0000-0010-8000-00AA006D2EA4}\n 37 {00001550-0000-0010-8000-00AA006D2EA4}\n 38 {00001550-0000-0010-8000-00AA006D2EA4}._CONNECTION\n 39 {00001550-0000-0010-8000-00AA006D2EA4}.PROPERTIES\n 40 {00000504-0000-0010-8000-00AA006D2EA4}\n 41 {00001550-0000-0010-8000-00AA006D2EA4}.PROPERTY\n 42 {00000503-0000-0010-8000-00AA006D2EA4}\n 43 {00001550-0000-0010-8000-00AA006D2EA4}._RECORDSET\n 44 {00001556-0000-0010-8000-00AA006D2EA4}\n 45 {00001550-0000-0010-8000-00AA006D2EA4}.FIELDS\n 46 {00001564-0000-0010-8000-00AA006D2EA4}\n 47 {00001550-0000-0010-8000-00AA006D2EA4}.FIELD\n 48 {00001569-0000-0010-8000-00AA006D2EA4}\n 49 {00001550-0000-0010-8000-00AA006D2EA4}.ERRORS\n 50 {00000501-0000-0010-8000-00AA006D2EA4}\n 51 {00001550-0000-0010-8000-00AA006D2EA4}.ERROR\n 52 {00000500-0000-0010-8000-00AA006D2EA4}\n 53 {00001550-0000-0010-8000-00AA006D2EA4}._COMMAND\n 54 {986761E8-7269-4890-AA65-AD7C03697A6D}\n 55 {00001550-0000-0010-8000-00AA006D2EA4}._PARAMETER\n 56 {0000150C-0000-0010-8000-00AA006D2EA4}\n 57 {00001550-0000-0010-8000-00AA006D2EA4}.PARAMETERS\n 58 {0000150D-0000-0010-8000-00AA006D2EA4}\n 59 ADODB.RECORDSET.6.0\n 60 {00000535-0000-0010-8000-00AA006D2EA4}\n 61 {00001556-0000-0010-8000-00AA006D2EA4}._RECORDSET\n 62 {00001556-0000-0010-8000-00AA006D2EA4}.PROPERTIES\n 63 {00001556-0000-0010-8000-00AA006D2EA4}.PROPERTY\n 64 {00001556-0000-0010-8000-00AA006D2EA4}.FIELDS\n 65 {00001556-0000-0010-8000-00AA006D2EA4}.FIELD\n 66 {00001556-0000-0010-8000-00AA006D2EA4}.ERROR\n 67 ADOX.CATALOG.6.0\n 68 {00000602-0000-0010-8000-00AA006D2EA4}\n 69 {00000603-0000-0010-8000-00AA006D2EA4}\n 70 {00000603-0000-0010-8000-00AA006D2EA4}._CATALOG\n 71 {00000603-0000-0010-8000-00AA006D2EA4}.TABLES\n 72 {00000611-0000-0010-8000-00AA006D2EA4}\n 73 {00000603-0000-0010-8000-00AA006D2EA4}.PROCEDURES\n 74 {00000626-0000-0010-8000-00AA006D2EA4}\n 75 {00000603-0000-0010-8000-00AA006D2EA4}.PROCEDURE\n 76 {00000625-0000-0010-8000-00AA006D2EA4}\n 77 {00000603-0000-0010-8000-00AA006D2EA4}.VIEWS\n 78 {00000614-0000-0010-8000-00AA006D2EA4}\n 79 {00000603-0000-0010-8000-00AA006D2EA4}.VIEW\n 80 {00000613-0000-0010-8000-00AA006D2EA4}\n 81 {00000603-0000-0010-8000-00AA006D2EA4}.GROUPS\n 82 {00000617-0000-0010-8000-00AA006D2EA4}\n 83 {00000603-0000-0010-8000-00AA006D2EA4}.USERS\n 84 {0000061A-0000-0010-8000-00AA006D2EA4}\n\nWhat can I do to solve this?", "time": "16:31", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Forget my previous post I must use TOleAuto():New instead of CreateObject.\n\nNow I get error :\n\n1003 adordd 1: EG_ARG\nSource : ADO_OPEN -> UR_SUPER_ADDFIELD( nWA, aField )", "time": "09:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat ADORDD version are you using ?\n\nWhere have you downloaded it from ?", "time": "11:25", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Im using RDDADO.prg from harbour 3.0.\n\nIm only linking adordd.prg ( no other rdd lib explicit linked) to the app.", "time": "11:40", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Please copy the source code of ADO_OPEN here, thanks", "time": "11:47", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Im connecting dbf - DbaseIV\n\n[code=fw:323ea2lv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_OPEN<span style=\"color: #000000;\">&#40;</span> nWA, aOpenInfo <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cName, aField, oError, nResult<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oRecordSet, nTotalFields, n,cstr<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/* When there is no ALIAS we will create new one using file name */</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_ALIAS <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; HB_FNAMESPLIT<span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span>, , @cName <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_ALIAS <span style=\"color: #000000;\">&#93;</span> := cName<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> += <span style=\"color: #ff0000;\">\".dbf\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;hb_adoSetTable<span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hb_adoSetEngine<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hb_adoSetServer<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hb_adoSetQuery<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hb_adoSetUser<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;hb_adoSetPassword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_CONNECT <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&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; aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span> := t_cTableName<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp;:= t_cQuery<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_USERNAME <span style=\"color: #000000;\">&#93;</span> := t_cUserName<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> := t_cPassword<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_SERVER <span style=\"color: #000000;\">&#93;</span> := t_cServer<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_ENGINE <span style=\"color: #000000;\">&#93;</span> := t_cEngine<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNOPEN <span style=\"color: #000000;\">&#93;</span> := .T.<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> Lower<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\".dbf\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cStr := &nbsp; CFILEPATH<span style=\"color: #000000;\">&#40;</span>aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cStr := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cStr,<span style=\"color: #000000;\">1</span>,LEN<span style=\"color: #000000;\">&#40;</span>Cstr<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp; &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> <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span>+cstr+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";Extended Properties=dBASE IV;User ID=;Password=\"</span><span style=\"color: #000000;\">&#41;</span>&nbsp; &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> Lower<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\".mdb\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &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> <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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> <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\";Jet OLEDB:Database Password=\"</span> + AllTrim<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> Lower<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\".xls\"</span><br />&nbsp; &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> <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\";Extended Properties='Excel 8.0;HDR=YES';Persist Security Info=False\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> Lower<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\".db\"</span><br />&nbsp; &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> <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\";Extended Properties='Paradox 3.x';\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_ENGINE <span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"MYSQL\"</span><br />&nbsp; &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> <span style=\"color: #ff0000;\">\"DRIVER={MySQL ODBC 3.51 Driver};\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"server=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_SERVER <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";database=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";uid=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_USERNAME <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";pwd=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_ENGINE <span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"SQL\"</span><br />&nbsp; &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> <span style=\"color: #ff0000;\">\"Provider=SQLOLEDB;\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"server=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_SERVER <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";database=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";uid=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_USERNAME <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";pwd=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_ENGINE <span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"ORACLE\"</span><br />&nbsp; &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> <span style=\"color: #ff0000;\">\"Provider=MSDAORA.1;\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Persist Security Info=False\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iif<span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_SERVER <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\";Data source=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_SERVER <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";User ID=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_USERNAME <span style=\"color: #000000;\">&#93;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";Password=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_ENGINE <span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"FIREBIRD\"</span><br />&nbsp; &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> <span style=\"color: #ff0000;\">\"Driver=Firebird/InterBase(r) driver;\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Persist Security Info=False\"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";Uid=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_USERNAME <span style=\"color: #000000;\">&#93;</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";Pwd=\"</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\";DbName=\"</span> + aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDCASE</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&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; aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span> := t_cTableName<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span> := t_cQuery<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_USERNAME <span style=\"color: #000000;\">&#93;</span> := t_cUserName<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_PASSWORD <span style=\"color: #000000;\">&#93;</span> := t_cPassword<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_SERVER <span style=\"color: #000000;\">&#93;</span> := t_cServer<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_ENGINE <span style=\"color: #000000;\">&#93;</span> := t_cEngine<br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNOPEN <span style=\"color: #000000;\">&#93;</span> := .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/* will be initilized */</span><br />&nbsp; &nbsp;t_cQuery := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #ff0000;\">\"SELECT * FROM \"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;oRecordSet := &nbsp;TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oRecordSet == <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; oError := ErrorNew<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">GenCode</span> &nbsp; &nbsp; := EG_OPEN<br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">SubCode</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">1001</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">Description</span> := HB_LANGERRMSG<span style=\"color: #000000;\">&#40;</span> EG_OPEN <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">FileName</span> &nbsp; &nbsp;:= aOpenInfo<span style=\"color: #000000;\">&#91;</span> UR_OI_NAME <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">OsCode</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">/* TODO */</span><br />&nbsp; &nbsp; &nbsp; oError:<span style=\"color: #000000;\">CanDefault</span> &nbsp;:= .T.<br /><br />&nbsp; &nbsp; &nbsp; UR_SUPER_ERROR<span style=\"color: #000000;\">&#40;</span> nWA, oError <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">CursorType</span> &nbsp; &nbsp; := adOpenDynamic<br />&nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">CursorLocation</span> := adUseClient<br />&nbsp; &nbsp;oRecordSet:<span style=\"color: #000000;\">LockType</span> &nbsp; &nbsp; &nbsp; := adLockPessimistic<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span> := FW_QuotedColSQL<span style=\"color: #000000;\">&#40;</span> &nbsp;CFILENOPATH<span style=\"color: #000000;\">&#40;</span>aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"SELECT * FROM \"</span><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span> + aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span>, aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_QUERY <span style=\"color: #000000;\">&#93;</span>, aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_CATALOG <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;\">\"ADOX.Catalog\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aWAData<span style=\"color: #000000;\">&#91;</span> WA_CATALOG <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ActiveConnection</span> := aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_CATALOG <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_CATALOG <span style=\"color: #000000;\">&#93;</span> := aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">OpenSchema</span><span style=\"color: #000000;\">&#40;</span> adSchemaIndexes <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span> := oRecordSet<br />&nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_BOF <span style=\"color: #000000;\">&#93;</span> := aWAData<span style=\"color: #000000;\">&#91;</span> WA_EOF <span style=\"color: #000000;\">&#93;</span> := .F.<br /><br />&nbsp; &nbsp;UR_SUPER_SETFIELDEXTENT<span style=\"color: #000000;\">&#40;</span> nWA, nTotalFields := oRecordSet:<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">Count</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nTotalFields<br />&nbsp; &nbsp; &nbsp; aField := Array<span style=\"color: #000000;\">&#40;</span> UR_FI_SIZE <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_NAME <span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp;:= oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Name</span><br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp;:= ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPEEXT <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_LEN <span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp; := ADO_GETFIELDSIZE<span style=\"color: #000000;\">&#40;</span> aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span>, oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">ActualSize</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_DEC <span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />#ifdef UR_FI_FLAGS<br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_FLAGS <span style=\"color: #000000;\">&#93;</span> &nbsp; := <span style=\"color: #000000;\">0</span><br />#endif<br />#ifdef UR_FI_STEP<br />&nbsp; &nbsp; &nbsp; aField<span style=\"color: #000000;\">&#91;</span> UR_FI_STEP <span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />#endif<br />&nbsp; &nbsp; &nbsp; UR_SUPER_ADDFIELD<span style=\"color: #000000;\">&#40;</span> nWA, aField <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;nResult := UR_SUPER_OPEN<span style=\"color: #000000;\">&#40;</span> nWA, aOpenInfo <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nResult == HB_SUCCESS<br />&nbsp; &nbsp; &nbsp; ADO_GOTOP<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> nResult</div>[/code:323ea2lv]", "time": "11:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nIf you post a full working sample and the source code of RDDADO.prg we can try to help!.\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "09:31", "topic": "ADO RDD xHarbour", "username": "elvira" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThis is how it is done from Harbour\\src\\rdd\\arrayrdd.prg\n\n[code=fw:1konyn7q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">      aField := Array<span style=\"color: #000000;\">&#40;</span> UR_FI_SIZE <span style=\"color: #000000;\">&#41;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_NAME <span style=\"color: #000000;\">&#93;</span>    := aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_NAME <span style=\"color: #000000;\">&#93;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span>    := hb_Decode<span style=\"color: #000000;\">&#40;</span> aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_TYPE <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #ff0000;\">\"C\"</span>, HB_FT_STRING, <span style=\"color: #ff0000;\">\"L\"</span>, HB_FT_LOGICAL, <span style=\"color: #ff0000;\">\"M\"</span>, HB_FT_MEMO, <span style=\"color: #ff0000;\">\"D\"</span>, HB_FT_DATE, <span style=\"color: #ff0000;\">\"N\"</span>, iif<span style=\"color: #000000;\">&#40;</span> aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_DEC <span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">0</span>, HB_FT_DOUBLE, HB_FT_INTEGER <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPEEXT <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_LEN <span style=\"color: #000000;\">&#93;</span>     := aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_LEN <span style=\"color: #000000;\">&#93;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_DEC <span style=\"color: #000000;\">&#93;</span>     := aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_DEC <span style=\"color: #000000;\">&#93;</span><br />      UR_SUPER_ADDFIELD<span style=\"color: #000000;\">&#40;</span> nWA, aField <span style=\"color: #000000;\">&#41;</span></div>[/code:1konyn7q]\n\nDo MsgInfo( ADO_GETFIELDTYPE( oRecordSet:Fields( n - 1 ):Type ) ) and tell me what type you get. It seems as the error may come from there.\n\n[url:1konyn7q]https&#58;//github&#46;com/harbour/core/blob/master/src/rdd/usrrdd/rdds/arrayrdd&#46;prg[/url:1konyn7q]", "time": "09:57", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "MsgInfo( ADO_GETFIELDTYPE( oRecordSet:Fields( n - 1 ):Type ) ) \ntype char value returned 1\ntype date value returned 3\ntype numeric value returned 7\ntype logic value returned 2\n\n\n[code=fw:lwkzinm0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> nADOFieldType <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nDBFFieldType := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adEmpty<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adTinyInt<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adSmallInt<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adInteger<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adBigInt<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adUnsignedTinyInt<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adUnsignedSmallInt<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adUnsignedInt<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adUnsignedBigInt<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adSingle<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adDouble<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DOUBLE<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adCurrency<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_INTEGER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adDecimal<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_LONG<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adNumeric<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_LONG<br /><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adError<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adUserDefined<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adVariant<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_ANY<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adIDispatch<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adIUnknown<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adGUID<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adDate<br />#ifdef HB_FT_DATETIME<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DATETIME<br />#else<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DATE<br />#endif<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adDBDate<br />#ifdef HB_FT_DATETIME<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DATETIME<br />#else<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DATE<br />#endif<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adDBTime<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adDBTimeStamp<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_TIMESTAMP<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adFileTime<br />#ifdef HB_FT_DATETIME<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_DATETIME<br />#else<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//nDBFFieldType := HB_FT_DATE</span><br />#endif<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adBSTR<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adChar<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adVarChar<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adLongVarChar<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adWChar<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adVarWChar<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_STRING<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adBinary<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_OLE<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adVarBinary<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_OLE<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adLongVarBinary<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_OLE<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adChapter<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adVarNumeric<br /><span style=\"color: #B900B9;\">/* CASE nADOFieldType == adArray */</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adBoolean<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_LOGICAL<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adLongVarWChar<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_MEMO<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nADOFieldType == adPropVariant<br />&nbsp; &nbsp; &nbsp; nDBFFieldType := HB_FT_MEMO<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDCASE</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> nDBFFieldType</div>[/code:lwkzinm0]", "time": "11:06", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease replace this line in AdoRdd.prg:\n\n aField[ UR_FI_TYPE ] := ADO_GETFIELDTYPE( oRecordSet:Fields( n - 1 ):Type )\n\nwith this:\n\n[code=fw:13v9q6zl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> &nbsp;ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> == <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> &nbsp;:= &nbsp;HB_FT_STRING<br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> &nbsp;ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> == <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> &nbsp;:= &nbsp;HB_FT_DATE<br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> &nbsp;ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> == <span style=\"color: #000000;\">7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> &nbsp;:= HB_FT_NUMERIC <span style=\"color: #B900B9;\">// if there are no decimals this should be HB_FT_INTEGER</span><br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> &nbsp;ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> == <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> &nbsp;:= HB_FT_LOGICAL<br /><span style=\"color: #00C800;\">endcase</span> <br />&nbsp;</div>[/code:13v9q6zl]", "time": "12:23", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nError:\n\ngenCode 14: EG_NOVAR\n operação HB_FT_NUMERIC\n\nIf I change it to HB_FT_INTEGER then I get the same error:\n\n genCode 1: EG_ARG\n severity 2\n subCode 1003\n subSystem ADORDD\n\n Chamado de UR_SUPER_ADDFIELD(0)\n Chamado de ADO_OPEN(448)", "time": "15:25", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease add this include at the top of AdoRdd.prg\n\n#include \"hbusrrdd.ch\"\n\nand replace HB_FT_NUMERIC with HB_FT_DOUBLE\n\nif HB_FT_DOUBLE fails, try it with HB_FT_INTEGER", "time": "20:18", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n#include \"hbusrrdd.ch\" was already there.\nHB_FT_NUMERIC its not defined in hbusrrdd.ch\n\nPassing the FOR clause in the first field I get:\n\nname user type 1 len 30\n\nits correct according to dbf file. user c 30\n\nCalling UR_SUPER_ADDFIELD( nWA, aField )\n\nI get the same error:\n\n arguments none\n description Argument error\n genCode 1: EG_ARG\n osCode (Não é erro do sistema operativo)\n severity 2\n subCode 1003\n subSystem ADORDD\n tries 0", "time": "23:50", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nCould you send me a small ZIP renamed as ZOP with the PRG and DBF ? thanks", "time": "00:25", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSent to your email.", "time": "10:13", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI have not received it yet. \n\nPlease remember to rename ZIPs as ZOPs or gmail will block them", "time": "10:20", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Sento as zop to <!-- e --><a href=\"mailto:'alinares@fivetechsoft.com\">'alinares@fivetechsoft.com</a><!-- e -->'", "time": "10:26", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDid you received my email?", "time": "09:24", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhere can I find FWAdoFieldSize() and FWAdoFieldDec( ) ?", "time": "10:29", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI have not received your email\n\nPlease rename the attached files as *.zop or gmail will delete them", "time": "12:12", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":28wvb5kz]Antonio,\n\nWhere can I find FWAdoFieldSize() and FWAdoFieldDec( ) ?[/quote:28wvb5kz]\n\nThose functions and much more are in FWH\\source\\function\\adfuncs.prg", "time": "12:28", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIm working with FWH October 2008 and xHarbour Sept 2008 and I dont have such functions.\n\nEmail resent", "time": "12:34", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIt seems as you are not using the most recent adordd.prg.\n\nPlease try it with this one:\n\n[url:45huubk2]https&#58;//github&#46;com/harbour/core/tree/master/extras/rddado[/url:45huubk2]", "time": "21:32", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nContinue to get error UR_SUPER_ADDFIELD(0) EG_ARG 1003 SUBSSYSTEM ADORDD\n\nMay be I have a wrong version of UR_SUPER_ADDFIELD\n\nWhat are the expected parameters of this function?\n\nAlso the THREAD STATIC does not compile I have to take THREAD out.\n\nI dont have function hb_ntos, hb_stod\n\nWithout \"common.ch\" HB_SYMBOL_UNUSED does not compile.", "time": "11:04", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "In [url:2qp9l10u]https&#58;//github&#46;com/harbour/core/blob/master/src/rdd/usrrdd/rdds/arrayrdd&#46;prg[/url:2qp9l10u] UR_SUPER_ADDFIELD() is used this way:\n\n[code=fw:2qp9l10u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   <span style=\"color: #00C800;\">FOR</span> EACH aFieldStruct IN aStruct<br />      aField := Array<span style=\"color: #000000;\">&#40;</span> UR_FI_SIZE <span style=\"color: #000000;\">&#41;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_NAME <span style=\"color: #000000;\">&#93;</span>    := aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_NAME <span style=\"color: #000000;\">&#93;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span>    := hb_Decode<span style=\"color: #000000;\">&#40;</span> aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_TYPE <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #ff0000;\">\"C\"</span>, HB_FT_STRING, <span style=\"color: #ff0000;\">\"L\"</span>, HB_FT_LOGICAL, <span style=\"color: #ff0000;\">\"M\"</span>, HB_FT_MEMO, <span style=\"color: #ff0000;\">\"D\"</span>, HB_FT_DATE, <span style=\"color: #ff0000;\">\"N\"</span>, iif<span style=\"color: #000000;\">&#40;</span> aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_DEC <span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">0</span>, HB_FT_DOUBLE, HB_FT_INTEGER <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPEEXT <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_LEN <span style=\"color: #000000;\">&#93;</span>     := aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_LEN <span style=\"color: #000000;\">&#93;</span><br />      aField<span style=\"color: #000000;\">&#91;</span> UR_FI_DEC <span style=\"color: #000000;\">&#93;</span>     := aFieldStruct<span style=\"color: #000000;\">&#91;</span> DBS_DEC <span style=\"color: #000000;\">&#93;</span><br />      UR_SUPER_ADDFIELD<span style=\"color: #000000;\">&#40;</span> nWA, aField <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">NEXT</span></div>[/code:2qp9l10u]\n\nnWA seems to be the workarea number and aField is an array with those values.", "time": "11:49", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:h4q42lrm]I dont have function hb_ntos, hb_stod[/quote:h4q42lrm]\n\nThose functions are from harbour standard libraries. \n\nHow do you get this error ?", "time": "11:54", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIm working with FWH October 2008 and xHarbour Sept 2008 .\n\nIs this the reason?", "time": "12:54", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAs far as I understand I must send in aField[ UR_FI_TYPE ] with clipper standard field types C N L...\n\nBut I still get te same error", "time": "13:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Please post here the code that you are using when you fill aField and call the function", "time": "13:29", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Here it is\n\n[code]FOR n := 1 TO nTotalFields\n aField := Array( UR_FI_SIZE )\n aField[ UR_FI_NAME ] := oRecordSet:Fields( n - 1 ):Name\n\t ADO_FIELDINFO( nWA, n, DBS_TYPE, @uInfo )\n aField[ UR_FI_TYPE ] := uInfo\n aField[ UR_FI_TYPEEXT ] := 0\n\t ADO_FIELDINFO( nWA, n, DBS_LEN, @uInfo )\n aField[ UR_FI_LEN ] := uInfo\n\t ADO_FIELDINFO( nWA, n, DBS_DEC, @uInfo )\n aField[ UR_FI_DEC ] := uInfo\n/*\n#ifdef UR_FI_FLAGS\n aField[ UR_FI_FLAGS ] := 0\n#endif\n#ifdef UR_FI_STEP\n aField[ UR_FI_STEP ] := 0\n#endif\n*/\nMsgInfo( \"name \"+aField[ UR_FI_NAME ] +\" Type \"+ aField[ UR_FI_TYPE ] +\" len \"+str(aField[ UR_FI_LEN ])+\" decimals \"+str(aField[ UR_FI_DEC ] ) )\n\n UR_SUPER_ADDFIELD( nWA, aField )\n NEXT\n\nSTATIC FUNCTION ADO_FIELDINFO( nWA, nField, nInfoType, uInfo )\n\n LOCAL nType, nLen\n LOCAL oRecordSet := USRRDD_AREADATA( nWA )[ WA_RECORDSET ]\n\n DO CASE\n CASE nInfoType == DBS_NAME\n uInfo := oRecordSet:Fields( nField - 1 ):Name\n\n CASE nInfoType == DBS_TYPE\n nType := ADO_GETFIELDTYPE( oRecordSet:Fields( nField - 1 ):Type )\n DO CASE\n CASE nType == HB_FT_STRING\n uInfo := \"C\"\n CASE nType == HB_FT_LOGICAL\n uInfo := \"L\"\n CASE nType == HB_FT_MEMO\n uInfo := \"M\"\n CASE nType == HB_FT_OLE\n uInfo := \"G\"\n#ifdef HB_FT_PICTURE\n CASE nType == HB_FT_PICTURE\n uInfo := \"P\"\n#endif\n CASE nType == HB_FT_ANY\n uInfo := \"V\"\n CASE nType == HB_FT_DATE\n uInfo := \"D\"\n#ifdef HB_FT_DATETIME\n CASE nType == HB_FT_DATETIME\n uInfo := \"T\"\n#endif\n CASE nType == HB_FT_TIMESTAMP\n uInfo := \"@\"\n CASE nType == HB_FT_LONG\n uInfo := \"N\"\n CASE nType == HB_FT_INTEGER\n uInfo := \"I\"\n CASE nType == HB_FT_DOUBLE\n uInfo := \"B\"\n OTHERWISE\n uInfo := \"U\"\n ENDCASE\n\n CASE nInfoType == DBS_LEN\n ADO_FIELDINFO( nWA, nField, DBS_TYPE, @nType )\n IF nType == \"N\"\n nLen := oRecordSet:Fields( nField - 1 ):Precision\n ELSE\n nLen := [b:353xgxc1]ADO_GETFIELDSIZE( ADO_GETFIELDTYPE( oRecordSet:Fields( nField - 1 ):Type ), oRecordSet:Fields( nField - 1 ):DefinedSize )[/b:353xgxc1]\n ENDIF\n /* Un campo mayor de 1024 lo consideramos un campo memo */\n uInfo := iif( nLen > 1024, 10, nLen )\n\n CASE nInfoType == DBS_DEC\n ADO_FIELDINFO( nWA, nField, DBS_LEN, @nLen )\n ADO_FIELDINFO( nWA, nField, DBS_TYPE, @nType )\n IF oRecordSet:Fields( nField - 1 ):Type == adInteger\n uInfo := 0\n ELSEIF nType == \"N\"\n //uInfo := Min( Max( 0, nLen - 1 - oRecordSet:Fields( nField - 1 ):DefinedSize ), 15 )\n\t\t [b:353xgxc1]uInfo := oRecordSet:Fields( nField - 1 ):NumericScale[/b:353xgxc1]\n ELSE\n uInfo := 0\n ENDIF\n#ifdef DBS_FLAG\n CASE nInfoType == DBS_FLAG\n uInfo := 0\n#endif\n#ifdef DBS_STEP\n CASE nInfoType == DBS_STEP\n uInfo := 0\n#endif\n OTHERWISE\n RETURN HB_FAILURE\n ENDCASE\n\n RETURN HB_SUCCESS\n\n\n/[code]", "time": "14:18", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:3kzvoxy9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FOR</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nTotalFields<br />aField := Array<span style=\"color: #000000;\">&#40;</span> UR_FI_SIZE <span style=\"color: #000000;\">&#41;</span><br />aField<span style=\"color: #000000;\">&#91;</span> UR_FI_NAME <span style=\"color: #000000;\">&#93;</span> := oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Name</span><br />ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, n, DBS_TYPE, @uInfo <span style=\"color: #000000;\">&#41;</span><br />aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> := uInfo<br />aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPEEXT <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span><br />ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, n, DBS_LEN, @uInfo <span style=\"color: #000000;\">&#41;</span><br />aField<span style=\"color: #000000;\">&#91;</span> UR_FI_LEN <span style=\"color: #000000;\">&#93;</span> := uInfo<br />ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, n, DBS_DEC, @uInfo <span style=\"color: #000000;\">&#41;</span><br />aField<span style=\"color: #000000;\">&#91;</span> UR_FI_DEC <span style=\"color: #000000;\">&#93;</span> := uInfo<br /><span style=\"color: #B900B9;\">/*<br />#ifdef UR_FI_FLAGS<br />aField[ UR_FI_FLAGS ] := 0<br />#endif<br />#ifdef UR_FI_STEP<br />aField[ UR_FI_STEP ] := 0<br />#endif<br />*/</span><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"name \"</span>+aField<span style=\"color: #000000;\">&#91;</span> UR_FI_NAME <span style=\"color: #000000;\">&#93;</span> +<span style=\"color: #ff0000;\">\" Type \"</span>+ aField<span style=\"color: #000000;\">&#91;</span> UR_FI_TYPE <span style=\"color: #000000;\">&#93;</span> +<span style=\"color: #ff0000;\">\" len \"</span>+str<span style=\"color: #000000;\">&#40;</span>aField<span style=\"color: #000000;\">&#91;</span> UR_FI_LEN <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" decimals \"</span>+str<span style=\"color: #000000;\">&#40;</span>aField<span style=\"color: #000000;\">&#91;</span> UR_FI_DEC <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />UR_SUPER_ADDFIELD<span style=\"color: #000000;\">&#40;</span> nWA, aField <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, nField, nInfoType, uInfo <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> nType, nLen<br /><span style=\"color: #00C800;\">LOCAL</span> oRecordSet := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /><span style=\"color: #00C800;\">CASE</span> nInfoType == DBS_NAME<br />uInfo := oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Name</span><br /><br /><span style=\"color: #00C800;\">CASE</span> nInfoType == DBS_TYPE<br />nType := ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_STRING<br />uInfo := <span style=\"color: #ff0000;\">\"C\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_LOGICAL<br />uInfo := <span style=\"color: #ff0000;\">\"L\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_MEMO<br />uInfo := <span style=\"color: #ff0000;\">\"M\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_OLE<br />uInfo := <span style=\"color: #ff0000;\">\"G\"</span><br />#ifdef HB_FT_PICTURE<br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_PICTURE<br />uInfo := <span style=\"color: #ff0000;\">\"P\"</span><br />#endif<br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_ANY<br />uInfo := <span style=\"color: #ff0000;\">\"V\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_DATE<br />uInfo := <span style=\"color: #ff0000;\">\"D\"</span><br />#ifdef HB_FT_DATETIME<br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_DATETIME<br />uInfo := <span style=\"color: #ff0000;\">\"T\"</span><br />#endif<br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_TIMESTAMP<br />uInfo := <span style=\"color: #ff0000;\">\"@\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_LONG<br />uInfo := <span style=\"color: #ff0000;\">\"N\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_INTEGER<br />uInfo := <span style=\"color: #ff0000;\">\"I\"</span><br /><span style=\"color: #00C800;\">CASE</span> nType == HB_FT_DOUBLE<br />uInfo := <span style=\"color: #ff0000;\">\"B\"</span><br /><span style=\"color: #00C800;\">OTHERWISE</span><br />uInfo := <span style=\"color: #ff0000;\">\"U\"</span><br /><span style=\"color: #00C800;\">ENDCASE</span><br /><br /><span style=\"color: #00C800;\">CASE</span> nInfoType == DBS_LEN<br />ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, nField, DBS_TYPE, @nType <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> nType == <span style=\"color: #ff0000;\">\"N\"</span><br />nLen := oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Precision</span><br /><span style=\"color: #00C800;\">ELSE</span><br />nLen := <span style=\"color: #000000;\">&#91;</span>b<span style=\"color: #000000;\">&#93;</span>ADO_GETFIELDSIZE<span style=\"color: #000000;\">&#40;</span> ADO_GETFIELDTYPE<span style=\"color: #000000;\">&#40;</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> <span style=\"color: #000000;\">&#41;</span>, oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">DefinedSize</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span>/b<span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #B900B9;\">/* Un campo mayor de 1024 lo consideramos un campo memo */</span><br />uInfo := iif<span style=\"color: #000000;\">&#40;</span> nLen > <span style=\"color: #000000;\">1024</span>, <span style=\"color: #000000;\">10</span>, nLen <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">CASE</span> nInfoType == DBS_DEC<br />ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, nField, DBS_LEN, @nLen <span style=\"color: #000000;\">&#41;</span><br />ADO_FIELDINFO<span style=\"color: #000000;\">&#40;</span> nWA, nField, DBS_TYPE, @nType <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Type</span> == adInteger<br />uInfo := <span style=\"color: #000000;\">0</span><br />ELSEIF nType == <span style=\"color: #ff0000;\">\"N\"</span><br /><span style=\"color: #B900B9;\">//uInfo := Min( Max( 0, nLen - 1 - oRecordSet:Fields( nField - 1 ):DefinedSize ), 15 )</span><br />uInfo := <span style=\"color: #000000;\">&#91;</span>b<span style=\"color: #000000;\">&#93;</span>oRecordSet:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> nField - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">NumericScale</span><span style=\"color: #000000;\">&#91;</span>/b<span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />uInfo := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />#ifdef DBS_FLAG<br /><span style=\"color: #00C800;\">CASE</span> nInfoType == DBS_FLAG<br />uInfo := <span style=\"color: #000000;\">0</span><br />#endif<br />#ifdef DBS_STEP<br /><span style=\"color: #00C800;\">CASE</span> nInfoType == DBS_STEP<br />uInfo := <span style=\"color: #000000;\">0</span><br />#endif<br /><span style=\"color: #00C800;\">OTHERWISE</span><br /><span style=\"color: #00C800;\">RETURN</span> HB_FAILURE<br /><span style=\"color: #00C800;\">ENDCASE</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> HB_SUCCESS<br /><br /><br />&nbsp;</div>[/code:3kzvoxy9]", "time": "14:22", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\n\nIf you post a full working sample it would be easier to look into the problem.\n\nI tested ADORDD in the past and it worked nice, but indexes were not supported. Are thet now?.", "time": "17:44", "topic": "ADO RDD xHarbour", "username": "lucasdebeltran" } ]
ADO RDD xHarbour
[ { "date": "2015-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Lucas,\n\nIm using the rddado.prg and .ch posted by Antonio in previous post.\nI've proceed with the changes posted after because I always get an error .\n\nI'm trying to work first with dbf files like this.\n\nRddRegister(\"ADORDD\",1) \nRddSetDefault(\"ADORDD\") \n\nsele 0\nuse \"whatever\" shared\n\nBrowse()\n\nI dont know if indexes work now. There is code for it but I still didnt tryed it.\nIt depends also on the provider.", "time": "18:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAll that we can do here is to double check that we have properly filled aField before calling that function.\n\nI doubt there is an error like this in the Harbour RDD engine, so I guess we are suplying wrong values to aField\n\nIf everything is ok, we may need to low level trace the RDD code to find the exact value that generates the error.", "time": "09:23", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI checked with msginfo() and the values in aField passed to UR_SUPER_ADDFIELD( nWA, aField ) are:\n\n nWa = workarea number\n aField[ UR_FI_NAME ] := \"name of field\"\n aField[ UR_FI_TYPE ] := one of \"C\",\"L\",\"D\",\"N\",\"M\"\n aField[ UR_FI_TYPEEXT ] := 0\n aField[ UR_FI_LEN ] := length of the field as number\n aField[ UR_FI_DEC ] := number of decimal places as number\n\n aField array 5 elements\n\nThe first element shows:\n\nnWA 20\nNAME \"NRENCOMEND\" \nTYPE \"C\"\nLEN 10\nDEC 0\nTYPEEXT 0\n\nand it generates the error.\n\nIn the original RDDADO the values were:\n\nnWa 20\nNAME \"NRENCOMEND\" \nTYPE HB_FT_STRING\nLEN 10\nDEC 0\nTYPEEXT 0\n\nSame result.", "time": "09:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Have you compared it with the way it is called from ?\n\n[url:1am2q2oo]https&#58;//github&#46;com/harbour/core/blob/master/src/rdd/usrrdd/rdds/arrayrdd&#46;prg[/url:1am2q2oo]", "time": "10:20", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYes and I checked with :\n\nmsginfo(str(HB_Decode( aField[ DBS_TYPE ], \"C\", HB_FT_STRING, \"L\", HB_FT_LOGICAL, \"M\", HB_FT_MEMO, \"D\", HB_FT_DATE, \"N\", IIF( aField[ DBS_DEC ] > 0, HB_FT_DOUBLE, HB_FT_INTEGER ) )))\n\nIt returns HB_FT_STRING for \"C\" for example.\n\nAll other elements are straight foward.\n\nThe error 1003 its a variable not found.\n\nCan this be due for some other reason?", "time": "10:40", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI guess you have to supply HB_FT_STRING instead of \"C\"", "time": "12:12", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nTried it again. Same error.", "time": "12:19", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Lets review Harbour's usrrdd.c code:\n\n[code=fw:2qpxqj5d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">HB_FUNC_UR_SUPER<span style=\"color: #000000;\">&#40;</span> ADDFIELD <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;AREAP pArea = hb_usrGetAreaParam<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</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; DBFIELDINFO dbFieldInfo;<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> hb_usrItemToFieldInfo<span style=\"color: #000000;\">&#40;</span> hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, HB_IT_ARRAY <span style=\"color: #000000;\">&#41;</span>, &dbFieldInfo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_retni<span style=\"color: #000000;\">&#40;</span> SUPER_ADDFIELD<span style=\"color: #000000;\">&#40;</span> pArea, &dbFieldInfo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_usrErrorRT<span style=\"color: #000000;\">&#40;</span> pArea, EG_ARG, EDBCMD_NOVAR <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_retni<span style=\"color: #000000;\">&#40;</span> HB_FAILURE <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:2qpxqj5d]\n\nIt seems as hb_usrItemToFieldInfo( hb_param( 2, HB_IT_ARRAY ) takes the value from the array and fill a structure\n[code=fw:2qpxqj5d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">static</span> HB_BOOL hb_usrItemToFieldInfo<span style=\"color: #000000;\">&#40;</span> PHB_ITEM pItem, LPDBFIELDINFO pFieldInfo <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pItem && hb_arrayLen<span style=\"color: #000000;\">&#40;</span> pItem <span style=\"color: #000000;\">&#41;</span> == UR_FI_SIZE <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; pFieldInfo->atomName &nbsp; &nbsp; &nbsp; = hb_usrArrayGetCPtr<span style=\"color: #000000;\">&#40;</span> pItem, UR_FI_NAME <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pFieldInfo->uiType &nbsp; &nbsp; &nbsp; &nbsp; = <span style=\"color: #000000;\">&#40;</span> HB_USHORT <span style=\"color: #000000;\">&#41;</span> hb_arrayGetNI<span style=\"color: #000000;\">&#40;</span> pItem, UR_FI_TYPE <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pFieldInfo->uiTypeExtended = <span style=\"color: #000000;\">&#40;</span> HB_USHORT <span style=\"color: #000000;\">&#41;</span> hb_arrayGetNI<span style=\"color: #000000;\">&#40;</span> pItem, UR_FI_TYPEEXT <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pFieldInfo->uiLen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style=\"color: #000000;\">&#40;</span> HB_USHORT <span style=\"color: #000000;\">&#41;</span> hb_arrayGetNI<span style=\"color: #000000;\">&#40;</span> pItem, UR_FI_LEN <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; pFieldInfo->uiDec &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style=\"color: #000000;\">&#40;</span> HB_USHORT <span style=\"color: #000000;\">&#41;</span> hb_arrayGetNI<span style=\"color: #000000;\">&#40;</span> pItem, UR_FI_DEC <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> HB_TRUE;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> HB_FALSE;<br /><span style=\"color: #000000;\">&#125;</span></div>[/code:2qpxqj5d]\n\n5 elements", "time": "13:02", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:3ugpccpb]https&#58;//github&#46;com/harbour/core/blob/master/src/rdd/usrrdd/usrrdd&#46;c[/url:3ugpccpb]", "time": "13:03", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPassed array its corrected.This is the print out:\n\naField[ UR_FI_NAME ] = NRENCOMEND\naField[ UR_FI_TYPE ] = 1\naField[ UR_FI_TYPEEXT ] = 0\naField[ UR_FI_LEN ] = 10\naField[ UR_FI_DEC ] = 0\n\n\nIt seems the error its not here.", "time": "16:41", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-05-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nadordd is working with copy to and copy struct when the table source is opened with via adordd.\nThus it goes directly to ado_trans and we have the control to do it either to another table via adordd or to other rdd.\n\nThe problem is when the source table is for ex. dbfcdx then _dbcopy executes and calls ado_append and ado_putvalue and I cant find why on the last record it errors after :update() in ado_putvalue.\n\n\nWith this done it will be very easy to export all tables from ex. dbfcdx to any adordd data source.\n\nCan you inform were can I find source __dbcopy ?", "time": "21:10", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat harbour version are you using ?", "time": "22:11", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":2t8c3q9j]Antonio,\n\nIm working with FWH October 2008 and xHarbour Sept 2008 .\n\nIs this the reason?[/quote:2t8c3q9j]", "time": "08:50", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI checked usrrdd.c from xHarbour and it expects aField[ UR_FI_FLAGS ] aField[ UR_FI_STEP ] that I now send := 0.\n\n\nIts ok now <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nWill keep you posted", "time": "11:06", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.\n\nI think this has something to do with charset\n\nAny solutions?", "time": "15:49", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Antono,\n\nThere is a problem with the field:type.\nWhen its dbf field \"N\" with 0 decimals it returns a double with 2 decimal places.\nHow can we make this conversion when uploading dbfs as tables for ex to mysql or working with dbfs directly ?", "time": "16:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":3lfcbnos]Antonio,\n\nI checked usrrdd.c from xHarbour and it expects aField[ UR_FI_FLAGS ] aField[ UR_FI_STEP ] that I now send := 0.\n\n\nIts ok now <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nWill keep you posted[/quote:3lfcbnos]\n\nVery good! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "08:50", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":3ss85ue0]Antono,\n\nThere is a problem with the field:type.\nWhen its dbf field \"N\" with 0 decimals it returns a double with 2 decimal places.\nHow can we make this conversion when uploading dbfs as tables for ex to mysql or working with dbfs directly ?[/quote:3ss85ue0]\n\nLets ask Mr. Rao about this as he is a great expert with SQL.", "time": "08:51", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":3p8vi1tm]I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.\n\nI think this has something to do with charset\n\nAny solutions?[/quote:3p8vi1tm]\n\nTry to use Harbour encrypt/decrypt functions to see if that solves the problem.\n\nI don't remember right now the exact names that those functions have.", "time": "08:52", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThe application crashes without any error in the following condition:\n\nACTIVATE WINDOW … ON INIT initial() …\n\n\nFunction Initial()\n\n Use dbf\n Do while !eof()\n\n …..\n Dbskip()\n Enddo\n\nIf the same function is called out of ON INIT clause its ok.\n\nIf I call browse() before the Do While in any condition its ok\n\nThe crash occours in the oRecordSet:move(nTotSkip) in ADO_SKIPRAW() inside the do while og Initial().\n\nWhat might be the problem?", "time": "10:54", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":20b7ey5b][quote=\"AHF\":20b7ey5b]I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.\n\nI think this has something to do with charset\n\nAny solutions?[/quote:20b7ey5b]\n\nTry to use Harbour encrypt/decrypt functions to see if that solves the problem.\n\nI don't remember right now the exact names that those functions have.[/quote:20b7ey5b]\n\nAntonio,\n\nThe first password was created with ADS.\nADORDD returns wrong chars.\nThis is a charset problem because if I reset the password with ADORDD a create a new one its ok!\n\nHow can I change the charset in ADO to be the same of ADS being ADS Collation=ansi or OEM character set = PORTUGUE Ansi CHARATER SET = Portuguese ?", "time": "11:26", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nCan you test this and confirm it?\n\n[quote=\"AHF\":35jcxuv4]Antonio,\n\nThe application crashes without any error in the following condition:\n\nACTIVATE WINDOW … ON INIT initial() …\n\n\nFunction Initial()\n\n Use dbf\n Do while !eof()\n\n …..\n Dbskip()\n Enddo\n\nIf the same function is called out of ON INIT clause its ok.\n\nIf I call browse() before the Do While in any condition its ok\n\nThe crash occours in the oRecordSet:move(nTotSkip) in ADO_SKIPRAW() inside the do while og Initial().\n\nWhat might be the problem?[/quote:35jcxuv4]", "time": "09:33", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAre you showing some data from the window ?\n\ntry not to paint any data from the database on the window, so the RDD is only used once\n\nLater on we will find a way to solve it,", "time": "11:50", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n\nI'm showing on a modal dialog with an array with several elements extracted from that table.\nThe error does not occours in the modal dialog but when I close the table just after the do while and before the moda dialog.\n\nIt seems crash occurs in ADO_CLOSE line with RETURN UR_SUPER_CLOSE( nWA )", "time": "12:24", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Is it a GPF ?\n\nDo you get any log file ?", "time": "16:55", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSorry I forgot to send it.\n\nAssinatura do problema:\n Nome do Evento de Problema:\tAPPCRASH\n Nome da aplicação:\tfllup.exe\n Versão da aplicação:\t10.0.0.0\n Carimbo de Data/Hora da Aplicação:\t5507d7fe\n Nome do Módulo com Falhas:\tOLEAUT32.dll\n Versão do Módulo com Falhas:\t6.1.7601.17676\n Carimbo de Data/Hora do Módulo com Falhas:\t4e58702a\n Código de excepção:\tc0000005\n Desvio de Excepção:\t00004974\n Versão do SO:\t6.1.7601.2.1.0.256.48\n ID de Região:\t2070\n Informações Adicionais 1:\tae2c\n Informações Adicionais 2:\tae2c80fe4dc0da3fe8c919694d2e67bb\n Informações Adicionais 3:\t61a9\n Informações Adicionais 4:\t61a9386778096c577ec0f18cdcd7098d", "time": "08:33", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease copy ADO_CLOSE source code here, thanks", "time": "08:35", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nHere it is.\n\n[code=fw:1nhgmzvr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ADO_CLOSE<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aWAData := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oRecordSet := USRRDD_AREADATA<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> WA_RECORDSET <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; oRecordSet:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> ! Empty<span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNOPEN <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">State</span> != adStateClosed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">State</span> != adStateOpen<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Cancel</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_CONNECTION <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> UR_SUPER_CLOSE<span style=\"color: #000000;\">&#40;</span> nWA <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1nhgmzvr]", "time": "08:47", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWe just found out that previous GPF occours with:\n\noRecorset:Open(\"SELECT * FROM \"+ cTableName.... GPFs in any condition\n\noRecorset:Open(cTableName .....GPFs if oRecordSet:CursorLocation := adUseClient\n\nIts ok if oRecordSet:CursorLocation := adUseServer \n\nAny ideas why?", "time": "09:41", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nNo idea why, but its great that you found a workaround so you can continue testing and working on it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "14:03", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThere are some issues that we must workaround in order to have full compatibility between ADO and normal RDD with no changes in the code if at all possible.\n\nThese are the issues:\n\n1)\tINDEX – In SQL these should be independent of the code itself. The programmer should only think about \n the data he needs, the rest its up to DB admin.\n By ordlistadd or createindex it would add to some array in the adordd the name of the indexes attached to \n that workarea.\n By ordsetfocus() the code simply asks for new recordset replacing the one in the same work area using \n SELECT …. ORDER BY…. \n The ORDER BY is extracted and parsed from the original index expression in an array of all dbfs used in \n the app in the form of:\n { {\"TABLENAME\",{\"INDEXNAME\",\"INDEXEXPRESSION\"},{\"INDEXNAME\",”INDEXEXPRESSION\"} }} if \n called by ordlistaad.\n If called by createindex the expression would be save in that array to the corresponding table name.\n Thus it doesnt matter to the programmer if the indexes do not physically exists in the database.\n The DB admin creates them enabling faster access for the app as the DB grows.\n We already use this kind of approach in queries in ADS with goods results.\n Using the SEEK we test if is supported otherwise FIND\n\n2)\tRELATION – We must work with as many records sets as the relations and basically works the same as \n indexes with an array for all the relations in the current work area.\n If it has indexes FORCE REATION will use SEEK otherwise FIND and also verifies that the SQL expression \n corresponds to the expected INDEX RELATION expression if it doesn’t rises an exception as other rdd child \n not \"indexed\". \n \n3)\tRECNO – Work with bookmarks if there isn’t any column AUTO INC named RECNO.\n Of course bookmarks have some compatibility limitations but I think its not big issue at least for our \n application.\n If it becomes a problem we must alter structure of the table and add RECNO field AUTO INC.\n\n4)\tLOCKS – we need to save all record locked like any other rdd to be used by dbrlocklist() that are either \n Bookmarks or column RECNO.\n In our case this is very important because in our transactions we lock and append all needed records and \n when updating we go through an array of locked records returned by dbrlocklist() using dbgoto().\n So it doenst matter so much the lock itself to prevent others from updating but the array of recnos locked. \n\n5)\tCONCURRENT UPDATES – This is a big issue and the simplest and safe way its to treat everything as a \n transaction and here we have to place in the code in every update BEGINS TRANS and COMMIT TRANS. I \n think it’s the only way to prevent concurrent updates.\n In the errorsys ABORT TRANS in case of an error.\n Perhaps we could in the first LOCK issue BEGINS TRANS and COMMIT TRANS in the first UNLOCK. \n The second LOCK checks if it is in a TRANSACTION (I dont know how to check it) if it doenst starts one.\n On the other hand if one issues an unlock during a transaction because the fields information needed \n didn’t checked right and did not proceed with it issuing a COMMIT TRANS after the unlock isn’t a problem \n because there isn’t nothing to commit and the TRANSACTION is finished assuming that all info verification \n is done before ny writing to the table.\n With an open transaction concurrent updates will be in principle safe.\n Databases not supporting transactions I really don’t have any alternative.\n\nDoing this we could increase the level of abstraction to the database and it might function with any database no matter if supports or not INDEXES,RELATIONS, ROW LOCKS, whatever.\nIf it is too slow DB Admin creates the needed indexes and the adorrdd issuing the SELECTS speed will increase drastically.\nI would forget CATALOGS and leave it to the DB Admin.\n\nMy questions are:\nWhat are these arrays of information already in the adordd?\n\nWhat is your opinion ? Do you think this is feasible ? Do you think it’s the better approach or do you have any other ideas?\n\nBy the way there are some FWAdo functions that I cant find anyware and could help doing the job.\n\nLooking foward to all comments,", "time": "12:17", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nCheck the functions for each task that you mention. There you will see where the indexes, etc. are placed:\n\ni.e. in ADO_ORDCREATE()\n[code=fw:cjrwsj4q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_CATALOG <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Tables</span><span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Indexes</span> == <span style=\"color: #00C800;\">NIL</span> .OR. ! lFound<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oIndex := win_oleCreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADOX.Index\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oIndex:<span style=\"color: #0000ff;\">Name</span> := iif<span style=\"color: #000000;\">&#40;</span> ! Empty<span style=\"color: #000000;\">&#40;</span> aOrderCreateInfo<span style=\"color: #000000;\">&#91;</span> UR_ORCR_TAGNAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, aOrderCreateInfo<span style=\"color: #000000;\">&#91;</span> UR_ORCR_TAGNAME <span style=\"color: #000000;\">&#93;</span>, aOrderCreateInfo<span style=\"color: #000000;\">&#91;</span> UR_ORCR_CKEY <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oIndex:<span style=\"color: #000000;\">PrimaryKey</span> := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oIndex:<span style=\"color: #000000;\">Unique</span> := aOrderCreateInfo<span style=\"color: #000000;\">&#91;</span> UR_ORCR_UNIQUE <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oIndex:<span style=\"color: #000000;\">Columns</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> aOrderCreateInfo<span style=\"color: #000000;\">&#91;</span> UR_ORCR_CKEY <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aWAData<span style=\"color: #000000;\">&#91;</span> WA_CATALOG <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Tables</span><span style=\"color: #000000;\">&#40;</span> aWAData<span style=\"color: #000000;\">&#91;</span> WA_TABLENAME <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Indexes</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oIndex <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span></div>[/code:cjrwsj4q]\n\nYou have to try and check it for yourself. I never tested a large app with Adordd.prg, not sure if Miguel did it (see the copyright of adordd.prg)", "time": "17:05", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI need to alter function IndexKey() to work also with adordd. \nHow can I do it ?", "time": "10:34", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIndexKey() se traduce en una llamada a OrdKey() y OrdKey() llama a ADO_ORDINFO()\n\n[url:234cfxg4]https&#58;//github&#46;com/harbour/core/blob/master/extras/rddado/adordd&#46;prg[/url:234cfxg4]", "time": "12:56", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nAt ADO_ORDLSTADD how can I save the all open index info to workarea array to be used in ADO_ORDINFO?", "time": "10:44", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nChange this:\n\n#define WA_RECORDSET 1\n#define WA_BOF 2\n#define WA_EOF 3\n#define WA_CONNECTION 4\n#define WA_CATALOG 5\n#define WA_TABLENAME 6\n#define WA_ENGINE 7\n#define WA_SERVER 8\n#define WA_USERNAME 9\n#define WA_PASSWORD 10\n#define WA_QUERY 11\n#define WA_LOCATEFOR 12\n#define WA_SCOPEINFO 13\n#define WA_SQLSTRUCT 14\n#define WA_CONNOPEN 15\n#define WA_PENDINGREL 16\n#define WA_FOUND 17\n#define WA_INDEXES 18 <==== New !\n\n#define WA_SIZE 18 <==== Changed !", "time": "11:28", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThe aOrderInfo[ UR_ORI_TAG ] can be Numeric or String.\n\nIs this behavior correct?", "time": "16:34", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat func calls the ADO_ORDDESTROY ?", "time": "16:46", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlace an error in ADO_ORDDESTROY() and you will see the calls stack list\n\nin example, write:\nx++\n\nit will error and you will see what function calls it", "time": "17:18", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhere is information about the controling index in ADO RDD ?", "time": "19:44", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-20", "forum": "FiveWin for Harbour/xHarbour", "text": "The controlling index is set in the ADO recordset:\n\noRecordSet:Index := aOrderInfo[ UR_ORI_BAG ]", "time": "22:39", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI needed an VAR to save the controling index. \nAll indexes are \"virtual\" they really dont exist as files in ADORDD. \nThe indexes are SELECTs\nIts solved. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nNow I need to know RDD function to DBRLOCKLIST()\n\nWhat is aLockInfo[ UR_LI_METHOD ] := DBLM_MULTIPLE ?", "time": "13:47", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nVery good, you are progressing <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nhave a look at this:\n[url:2j0oyblq]http&#58;//www&#46;ousob&#46;com/ng/53tecref/ng42f2a&#46;php[/url:2j0oyblq]", "time": "22:20", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nOk got it! \n\nHow can I have DBRLOCKLIST() to work?", "time": "23:45", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSee how it is implemented in Harbour:\n\n[code=fw:18xx2qsy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> DBRLOCKLIST <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; PHB_ITEM pList = hb_itemArrayNew<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; SELF_INFO<span style=\"color: #000000;\">&#40;</span> pArea, DBI_GETLOCKARRAY, pList <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; hb_itemReturnRelease<span style=\"color: #000000;\">&#40;</span> pList <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:18xx2qsy]", "time": "08:13", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSorry didnt catch it.\n\nI'm not familiar with harbour C ext. \n\nWhere can I keep the locklist array updated in adordd everytime ADO_LOCK and ADO_UNLOCK are called?\n\nLocks dont really exist in the files its only for record position information.", "time": "08:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIn that C code an array is created and filled with an array (DBI_GETLOCKARRAY)\n\nThe question here is: Does it have sense to talk about this in ADO ? Do we just return an empty array ?\n\nAre we going to need those locks positions ? I guess no", "time": "09:12", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIts absolutly necessary to keep the locklist array.\n\nIn transactions we lock and append all necessary records and then we loop trough the locklist with dbgoto to make all replaces. If a lock fails the transaction fails. \n\nAltough with ADO never fails as real locks dont matter we still need to have it filled with bookmarks to return to each record later.", "time": "09:34", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nok, you can save them using bookmarks, yes", "time": "09:47", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI need your support here because I still dont know how to do it.", "time": "09:53", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease post your most recent adordd.prg file and I review it, thanks", "time": "10:19", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSent to your email.", "time": "10:40", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYour code looks fine. What is missing ?\n\nIf you don't mind I am going to share your version so other users may try it too, thanks\n\n[url:1z91ljii]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/adordd&#46;prg[/url:1z91ljii]", "time": "11:30", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDbrocklist() returns zero", "time": "11:33", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nPlease place a MsgInfo() in function ADO_ORDINFO() and check if it is shown when you call to Dbrlocklist()", "time": "11:57", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI did that already.\nDbrlocklist doesnt call ado_ordinfo.", "time": "12:19", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nDbrlocklist is a area/table related information and not index.\n\nI think drblocklist is calling dbinfo with the corresponding #define.\n\nWhen we open a recorset we load to UR_SUPER_OPEN( nWA, aOpenInfo ) all openinfo.\n\nCan we do something of the kind with locks and unlocks to keep locklist always updated?", "time": "12:41", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYes, you are right, it is DbInfo()\n\nWhat we are not going to lock any records, so what do you need that for ?", "time": "12:43", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AHF\":1st6raph]Antonio,\n\nIts absolutly necessary to keep the locklist array.\n\nIn transactions we lock and append all necessary records and then we loop trough the locklist with dbgoto to make all replaces. If a lock fails the transaction fails. \n\nAltough with ADO never fails as real locks dont matter we still need to have it filled with bookmarks to return to each record later.[/quote:1st6raph]", "time": "13:00", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nSo the array that you have to return is aWdata[ WA_LOCKLIST ]", "time": "16:23", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nYes thats the array I created for that porpose and its already updated by ado_lock and ado_unlock.", "time": "16:55", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Can't you return it from DbInfo() ?", "time": "18:40", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nNo. The problem is that I must pass somewhere the locklist array that I build but dont know where and how.\nI dont have any other rdd.prg source to check it out.", "time": "19:31", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "See the source code for dbinfo():\n\n[code=fw:3ihvhqz9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> DBINFO <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; PHB_ITEM pIndex;<br /><br />&nbsp; &nbsp; &nbsp; pIndex = hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, HB_IT_NUMERIC <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pIndex <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PHB_ITEM pInfo = hb_itemNew<span style=\"color: #000000;\">&#40;</span> hb_param<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, HB_IT_ANY <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SELF_INFO<span style=\"color: #000000;\">&#40;</span> pArea, <span style=\"color: #000000;\">&#40;</span> HB_USHORT <span style=\"color: #000000;\">&#41;</span> hb_itemGetNI<span style=\"color: #000000;\">&#40;</span> pIndex <span style=\"color: #000000;\">&#41;</span>, pInfo <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_itemReturnRelease<span style=\"color: #000000;\">&#40;</span> pInfo <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_errRT_DBCMD<span style=\"color: #000000;\">&#40;</span> EG_ARG, EDBCMD_DBINFOBADPARAMETER, <span style=\"color: #00C800;\">NULL</span>, HB_ERR_FUNCNAME <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:3ihvhqz9]", "time": "22:53", "topic": "ADO RDD xHarbour", "username": "Antonio Linares" } ]
ADO RDD xHarbour
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI dont understand it.\nAs I said before I dont know nothing about rdd specs and the way of working.\n\nI define #define WA_LOCKLIST 22 \n\nCant we do with dbrlocklist something like\n\naADOFunc[ UR_LOCK ] := (@ADO_LOCK())\n\nThen I would have acess to my locklist array.", "time": "09:41", "topic": "ADO RDD xHarbour", "username": "AHF" } ]
ADO RDD xHarbour