Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasession and Prg Files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00744390
Message ID:
00744405
Vues:
13
If I create a goApp object in my main PRG file, the goApp object exists in the default DS [DS #1]. If I call a method [procedure] in goApp from a form with a private DS, the code executes in the default DS, not in the DS of the form.

If you do something like: DO ProcName in MyPRGFile in a form method, or if you have SET PROCEDURE TO MyPRGFile [even done so outside the private DS of the form] and call a proc similar to: lnRetVal = DoMyProc(), then, you are correct, the proc is run in the calling DS.

I can not find where this is documented either.

>Hi
>
>Can someone confirm the following statement?
>
>If a procedure in a prg file is called from a form method with a private datasession the procedure is executed within the private datasession.
>
>I cannot remember where I read this nor can I find it in the VFP documentation.
>
>Thanks
>Simon
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform