Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A basic thought about LOCAL variables
Message
 
To
28/12/1999 18:06:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309158
Message ID:
00309659
Views:
30
>Hi Jim,
>
>>The private one is released when AProc terminates, that is the difference.
>
>Sorry if I'm not getting it. The PUBLIC is seen by the calling procedure and the PRIVATE is not while APROC is still living (which can be tested using the locals window while stepping through the code I provided). Why is that not a different difference?

Mike,

If AProc is running the private exists. I have no idea how you can see memory for the calling procedure while Aproc is still running. If Aproc is running then the calling procedure is not running, VFP is single threaded. When aproc is finsihed and control returns to teh calling procedure the private variable will no longer exist.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform