Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form object lost when calling program
Message
From
22/10/2003 17:01:56
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00841199
Message ID:
00841298
Views:
23
duh,
thx for catching that
>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
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform