Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement