Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Declaration
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00028187
Message ID:
00028227
Views:
31
>>Hi to All,
>>
>>I'm kinda new with VFP5.0 but programmed in FPW2.6 before. How can I use a variable that I declare in and initialize in a form without having to declare as public? Please give me a small crash course here since I'm starting to be puzzled!
>>
>>Yves
>
>When you have the form in the designer, on the menu bar click Form. One of the items is "New Property". Make your variable a property of the form and it can be accessed throughout the forms methods.
>
>IF THISFORM.lValid && Logical type
>
>Hope this helps.
>
>Steve Despres
>EZ Data Inc
>sdespres@erols.com


Thanks for your help,

But that could be a rather long processus when you have many variables. I would rather declare it public than have no problem. The thing is that I would have thought that if I declare a LOCAL variable in the init event of a form or formset, all objects or events on that form would have access to it but it doesn't look like it is working like that.

Thanks,
Yves
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform