Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining a global property for an application
Message
From
10/04/2000 21:44:22
 
 
To
10/04/2000 20:24:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00357663
Message ID:
00357777
Views:
17
>I was trying to avoid the use of Public variables which is why I was asking how to define a property available
>to the entire application. For example if my application is call goApp who do I create a property called
>
> goApp.myproperty
>
>and then assign values to it and then use it in mehtods of various forms.

If you use VFP6, if the base class of your app object will support it:

=goApp.AddProperty('myproperty')

will create the property; you can then reference it. You can check the object for the existance of a property safely with TYPE() or PEMSTATUS()
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