Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Lloyd,
That made perfect sense! Thanks so much for your input!
Rodd
>Hi Rodd,
>
>The memvar for the form object reference would be declared private. This is probably why the form is being destroyed so quickly. What I have done in the past is to declare a global object and have an array as a property of that object. I have 2 elements in each row, the first with a 'friendly' name for the form and the second is the object reference. When you create a form you then pass the friendly name and object reference in e.g.
>
>LOCAL loFormSomething
>
>DO FORM frmSomething NAME loSomething
>goApp.StoreForm( 'My Something Form', loSomething )
>
>Because you have an additional object reference then the form is not destroyed when the local / private memvar goes out of scope. All you do then is put a call from the form goApp.KillForm( 'My Something Form' ) when you want to close it. The KillForm can set the object reference in the array to NULL and then you can close the form down.
>
>Hope this makes sense! If not I will clarify more. I don't have the code i used to hand, but the main principles are above.
>
>Lloyd.
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