Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modeless Form - Flashes and Closes
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00427825
Message ID:
00427842
Views:
18
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform