The FW_ArrayAsRecordSet() function is supposed to return an ADODB.RecordSet type object, an object that includes the Seek() method, which works wonderfully in DB´s MaríaDB, MySql, Postgresql, Sqlite, etc., but, with FW_ArrayAsRecordSet() function, generates error: "ADODB.RecordSet/6 DISP_E_UNKNOWNNAME: PROPERTIES" error
- Code: Select all Expand view RUN
- #include "FiveWin.ch"
REQUEST DBFCDX
Function Main()
LOCAL aStruct := {}, aRegs := {}, oRs
SET EXCLUSIVE OFF
SET DATE FORMAT TO "dd-mm-yyyy"
RddSetDefault("DBFCDX")
dbUseArea(.T.,,"D:\FWH\SAMPLES\CUSTOMER.DBF","Cust")
dbSetIndex("D:\FWH\SAMPLES\CUSTOMER.CDX")
OrdSetFocus("Last")
aStruct := dbStruct()
aRegs := FW_DbfToArray()
oRs := FW_ArrayAsRecordSet( aRegs, aStruct )
// xBrowse(oRs, "oRs ArrayAsRecordSet from DBF")
oRs:Seek( "Simpson" , .T., .F.) // Genera " Error ADODB.RecordSet/6 DISP_E_UNKNOWNNAME: SEEK"
dbCloseall()
Return(NIL)
How can it be corrected? I use FWH 20.07, xHarbour and Borland 7.3
A big hug for everyone.