Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Cursors...
Message
 
 
À
29/08/2002 13:29:23
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00695065
Message ID:
00695082
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform