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.
>>
>>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.