Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modeless Form - Flashes and Closes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00427825
Message ID:
00427842
Vues:
19
>I have a form that is modeless and is called from the menu.
>
>This form uses the command item and the form stays open.
>
>When i call another form from the form currently open and the form being called is modeless the form opens and closes..
>
>What is different from the COMMAND option on the menu and my
>DO FORM xx NAME xx LINKED??
>
>TIA
>Shawn

Because of the LINKED - once the variable used by NAME goes out of scope (at then end of the method that calls the form, I'm guessing), the form is released.
Use a form property for the NAME instead - e.g.
DO FORM xx NAME this.oOtherForm LINKED

You still may need to make sure you clean up the object reference in the calling form's Destroy().
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform