Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private variables not available in 7.0 in form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00889462
Message ID:
00889803
Views:
25
Hi Michael,

Private variables declared in the calling program of a modeless forms will go out of scope since execution continues on the line after the DO FORM command and probably exits while the form is active. One thing you can do is declare it as private in your start-up procedure, set its value in the program calling the modeless form and it will be in scope throughout the current session. Maybe a better way is to use a form property to store the value and access this property in place of the private variable unless the variable goes out of scope before you can set the form property. If that happens, you can pass the value of the variable as a parameter to the form and set the property in the init of the form.

HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform