Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Cursors...
Message
 
 
To
29/08/2002 13:29:23
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00695065
Message ID:
00695082
Views:
12
>Hi friends.
>
>I'm working on a COM that in one of its classes, it has to create a cursor and return it to the Master Procedure.
>
>However, the COM's DataSession is Private and I need the cursor on the Global DataSession, so other methods can have access to it. What to do?
>
>TIA,

Pablo,
You can't pass cursors back and forth. Some suggestions:

1. Create an XML from the cursor and pass this to the master procedure. Turn the XML string into another cursor from there.
2. Create an ADO recordset from the cursor and pass this to the master procedure. Work with it as an ADO recordset or turn it back into a cursor.
3. Create a table instead of a cursor. This has a disk presence. You could pass the path\table name back to the master procedure and it could open it and work with it.

HTH.
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