Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO Classes
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00577440
Message ID:
00577949
Views:
25
>thanks I'll try again later, while I have your ear, I am currently reading the "What's new in Visual Foxpro 7" book and thought I'd try out using the new Implements clause of Define Class, the obvious choice for me was to try it on ADO Recordset, I dragged the _Recordset interface from the object browser into a prg file and it dutifuly created a blank implementation ( very impressive ), however when I tried to use it I received an error message "IRecordset_put_DataSource does not exist" ( IRecordset is my class name ), on investigation sure enough it doesn't exist, is this a bug?
>
>many thanks
>
>Pete Kane
>
>I added IRecordset_put_DataSource(cSource as variant) to the class and it instantiated okay but I haven't tried it yet.

Peter,
IRecordSet is the recordset interface. AFAIK, IMPLEMENTS was designed to be used with object events so it could respond when something happened. The interface you are trying to implement has no such thing and I really don't know what would happen if you bound the two objects together. You could implement the RecordSetEvents interface and bind that to your RecordSet object.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform