General information
Category:
Coding, syntax & commands
>Larry,
>
>Your object variable is going out of scope and wehn it does so does the form it refers to. There are a number of ways to fix this, but the best way is to have a form manager object. In your form manager you add a launchform method. All forms are launched by calling the launch form method of teh from manager.
>
>The form manager also has an array property that is used to store the form references, so launching a form becomes;
>
>THIS.oForms() = CreateObject(...)
>
>SomeNumber is the next entry in the array. You also have to provide a way to remove forms from the collection.
Jim,
Can the application object also serve as the 'form manager'? It seems like a logical place since it's always in scope...
Thanks
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