Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable scope
Message
From
17/08/1999 13:38:39
 
 
To
17/08/1999 13:27:56
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00254565
Message ID:
00254577
Views:
24
>In Visual Fox how do you reference variables from one method to another? Example: When calling a form I pass a few variables to it using the parameters statement in the init of the form. How would I make those parameters available to other methods and controls in that form? By default they seemed to be local.

The easiest way would be to make them properties of the form, rather than variables. The only memvars that would persist would be globals (PUBLICs) and there are all sorts of funky side effects, on top of being bad OOP in general. Form properties are visisble within the form, and have the necessary persistence and encapsulation you want.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform