Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scoping of Variables
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00011488
Message ID:
00011589
Views:
29
>>Hi guys, can anybody explain me how the scope of
>>variables works in Visual Foxpro. I need to
>>pass by reference variables to a form, so I can
>>change inside the form the values of the original
>>variables and keep that value, in the old days, that
>>is in Foxpro 2.6, everything that was declared in the
>>"setup" section of my screen was recognized in all
>>the functions of my "cleanup" section, now I know
>>that I have to put my parameters statements in the
>>"Init" method of my form, but after that it doesn't
>>recognize those vaiables in any other method or procedure and I don't want to create new properties
>>just to do that, because sometimes I need to do it with too many variables and I don't want to make those variables "public".
>>Thanks in advance.
>>luisg@netrunner.net
>
>i usually add properties to my form and store the parameters i've passed in them. also, when creating an object w/ createobject, these properties are available until releasing the object.

Thanks for your help guys :), I think I'm going to need to do that.
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform