Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private datasession and Prg Files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744390
Message ID:
00744418
Views:
10
Hi Mark

What you described is how I understood it. I just wish it was documented somewhere.

Thanks
Simon

>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
Simon White
dCipher Computing
Previous
Reply
Map
View

Click here to load this message in the networking platform