This is the thread
Re: Modal form not releasing in init Thread #
1105993 >I have an app that does something like this:
>
>I have a main.prg, and a top-level form. All the main.prg does is run the top level form.
>
>What I want to do is have the main.prg accept a paramamter, run the screen, click a button on the screen, then exit the screen and application.
>
>So main.prg:
>
>lparamters tcYesNo
>If tcYesNo = 'YES'
> Do form myForm with tcYesNo
>EndIf
>
>Then in the init() of myForm I have something like this....
>
>lparameters tcYesNo
>If tcYesNo = 'YES'
> ThisForm.cmdRunButton.Click()
> ThisForm.Release()
>EndIf
>
>...and I have a CLEAR EVENTS in the destory() of myForm. Problem is that it doesn't really release the form...any ideas?
If it's not broken, fix it until it is.
My Blog