Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Cursors from one Class to Another
Message
De
02/07/2002 00:49:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/07/2002 13:56:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00674010
Message ID:
00674287
Vues:
19
>Sergey,
>
>Hope you don't mind answering another question from me. I was experimenting yesterday and came across what I think is a Private Data Session issue.
>
>I have two classes subclassed from the Session Class - clsData and clsHTML. I've instantiated the clsHTML inside the cls Data class. After creating a cursor in the clsData class, I'd like to pass it to a method in the clsHTML class (oHTML.). This method would wrap an HTML table around the cursor and pass this structure back as a string.
>
>Now, when I create the cursor and try to pass it to the clsHTML class, it disappears.
>
>How can I get the clsHTML class to see a cursor created by the clsData class? This can be done, yes?
>
>TIA,
>
>Dan

You can't pass cursors between private datasessions but you might pass them as an array, an array of record objects etc or pass clsHTML the clsData's DataSessionId (then clsHTML could switch to clsData's session and process cursor).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform