I tried your sample code (2 messages above) and it errors out on this line.
oRs:Open( StrTran( cSql, '?', cState ), oCn )
I note that:
oRs := TOleAuto():New( "ADODB.RecordSet" )
Is returning an object, but it doesn't seem to have an Open() method.
I don't know much about ADO, so I don't see the problem. Perhaps I need to like in another LIB? I am using the standard BUILDX.BAT file and xHarbour with FWH 10.3.
Regards,
James
- Code: Select all Expand view
- Application
===========
Path and name: C:\Temp\TestADO.exe (32 bits)
Size: 1,801,728 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 07/15/10, 07:07:22
Error description: Error ADODB.RecordSet/6 DISP_E_UNKNOWNNAME: OPEN
Args:
[ 1] = C SELECT FIRST,CITY,STATE FROM CUSTOMER WHERE STATE = "NY" ORDER BY FIRST
[ 2] = O ADODB.Connection
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:OPEN(0)
Called from: TestADO.prg => MAIN(22)