Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a recordset to a VFP Com Server from VB
Message
From
28/05/2001 11:29:26
 
 
To
25/05/2001 12:01:16
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00511588
Message ID:
00511924
Views:
13
Hi!

You require to use the recordset marchalling between COM objects. This should be a client-side ADO recordset, something like following:

rs.CursorLocation = adUseClient
rs.Open ...
rs.ActiveConnection = Nothing
rs.MarshalOptions = adMarshalAll

Above way you make the disconnected recordset. Only such kind of recordsets could be passed between COM objects.

HTH.


>I have a com server written in VFP that employs VFPCOM to convert between cursors and recordsets.
>
>My server method - getrecordset() - to return a recordset to the client works fine whether the client is written in VB or VFP.
>
>The method -passrecordset()- that takes a recordset as a parameter fails when the com server runs in a VB client (see code snippet below).
>
>*****
>set myserver = createobject("myserver.myserver")
>set rs = myserver.getrecordset
>Call myserver.passrecordset( rs )
>*****
>
>I have checked the parameter in the VFP server passrecordset() method - it is an object but doesn't appear to be an adodb.recordset object, i.e. i cannot access any methods of the recordset object.
>
>When the client is VFP I can access the recordset object no problem inside this method.
>
>Any help with this problem would be greatly appreciated
>
>Damien Byrne
>Kaleida Ltd
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform