Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form object not released
Message
From
07/05/1997 21:57:08
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00031077
Message ID:
00031262
Views:
43
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform