Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A basic thought about LOCAL variables
Message
From
29/12/1999 10:48:08
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309158
Message ID:
00309865
Views:
36
Hi Jim,

This is my last try, then I will be wrong :-)

>There is no way for the calling program to address the private variable...

Ok

>...because before the calling program is back in control the private variable is released from memory.

I would say no. The behavior you decribed is true, but the reason (IMO) is because program above it just cannot see it even while it is in scope. But PUBLIC variables can be seen. That is a difference between the scope of the two. Using the Locals window this can be seen because it has a combobox that lets you choose which routine you would like to see visible variables for.

Here is a Bitmap with what I think is hard cold evidence of this (it shows the Locals window and Trace window; take not of the value of the combo "Locals for"): http://208.230.170.137/mgh/jimb.bmp

How would you argue against that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform