Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00581953
Views:
46
>Sometimes a PUBLIC variable is necessary. For instance, if we "hard-code" our forms, it always seems that runtime won't byte until it is declared public. I wish someone could show me the light on that one! I am *slowly* moving to class containers for PUBLIC variable management. I am probably using 8 or 10 percent of the total paradigm - and still I suufer from synaptic overload. Maybe if I double up on my Gingko, it would move to 12%:-).

Terry,

With a start up orogram and a read events it is never necessary to use a public variable;
* Start up program
loForm = CreateObject("MyForm") &&loForm is private
READ EVENTS

DEFINE CLASS MyForm AS Form
* Do your "hard coded form here
* be sure to CLEAR EVENTS in the destroy event

ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform