Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing a Cursor from another DataSession
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00202395
Message ID:
00202400
Vues:
18
Paul, I too had bad luck trying to switch datasessions while running a form. Great documentation on this, eh. "...We don't recommend this..."

The easiest way I found to do this was to save the form, whose datasession I wanted to access, as a class. Then instantiate the form like oMyForm = CREATEOBJECT("formclass"). Then just code your data manipulation routines in new methods of the form. They can return a value to the form that you are currently running - like lcCustomer = oMyForm.GetCustName("ACE001").

Hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform