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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only