Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables in form
Message
From
05/12/2007 08:32:09
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01273093
Message ID:
01273241
Views:
11
>If I declare a variable in init event of a form
>this variable is not found in a button or other object of the form
>
>I have to declare it as public
>
>Is it really necessary to declare the variable as public ?

try adding a property to the form object with ADDPROPERTY(). It would then been scoped to the entire form and all of its methods. When the form loses scope, so does the property.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform