Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form flashes then vanishes...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00135765
Message ID:
00135812
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform