Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form wont' stay open!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00947204
Message ID:
00947495
Views:
15
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform