Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form object not released
Message
De
07/05/1997 21:57:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00031077
Message ID:
00031262
Vues:
41
>>>Also controlling the scope of the variable, as in making sure it is local or private so it goes out of scope at the proper time would work.
>>
>>Thanks, my oApp.LoadForm() was defining that variable PUBLIC. I will try to define it PRIVATE instead and see if it goes out of scope.
>
>Let us (all) know the answer, Michel, since there have been several questions relating to this lately.

Well, I had a weird feeling about this and I just confirmed it.

The application object LoadForm() is now using PUBLIC (tcName) to make the object public before doing DO FORM X NAME (tcName). By putting PRIVATE instead of PUBLIC, the form appear and disappear right away and that's perfectly normal because once the DO FORM is finished, the LoadForm() will go away and so does the variable defined at that level.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform