Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables in form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01273093
Message ID:
01273103
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Thank you
>
>I thought variables were supposed to be valid while in the same form
>
>I used to declare them in init method and release them in
>release method
>
>But sometimes I forget to release them
>
>Moises

No, any method or event in the form is a single program routines . So variable scopes are valid as in other ones:
LOCAL until that code is visible and not for any other routines executed in it.
PRIVATE until that code is visible and for every other routines executed in it.
PUBLIC for every other routines executed in it and after it until that variable is released.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform