Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form object lost when calling program
Message
 
 
To
22/10/2003 14:30:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00841199
Message ID:
00841252
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
Trey,
Just a note. If you show the form as Modal (Show(1)), then you don't need the Read Events. If the form actually shows modally, then the Read Events will simply put VFP into a wait state after the form has already gone away.

Regards.

>I assume the intention of the DO WHILE .T. is to keep the menu shown. If so, then change your main to use READ EVENTS instead. This puts VFP into a state waiting for events to occur. Assuming the oBMENU object is declared earlier as either Private or Public, it will stay in scope, e.g.
>
** main
>oBMENU = NEWOBJECT("MainMenu","chrommmainform.prg",'',lcBAckControl)
>OBMENU.SHOW(1)
>READ EVENTS
>also assuming that when you close the OBMENU form, you want the app to close, in your OBMENU.Unload() event put
>
CLEAR EVENTS
>You won't need the relase obmenu
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform