Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO Classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00577440
Message ID:
00578006
Vues:
24
Hello John,
if you can pardon my ignorance here much obliged, the way I read it was, e.g., if I created a class as shown below, I could bind my class to another ( using EventHandler() ) which would capture the events of my bound object


oEventSink = CreateObject('PKTest')
oConn = CreateObject('ADODB.Connection')
oRs = CreateObject('ADODB.RecordSet')
oConn.Open('MYDSN')
lRet = EventHandler(oRs,oEventSink)

If lRet
oRs.Open('Select * From foo',oConn)
EndIf

Define Class PKTest as Session
IMPLEMENTS _Recordset In ADODB.Recordset

Procedure _Recordset_Open(whatever parameters)
I thought this code would fire when I issued oRs.Open('Select * From foo',oConn)
EndProc

All the rest of the interface stuff here...
EndDefine


if there is another way of doing this it would simplify my life enormously, thanks once again for your assistance


Pete ( confused ) Kane
Regards,
Peter J. Kane



Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform