Hi Naomi,
Thanks for the info. I need it to run the code in the button, so I just added the return .F. after the call to the button and it works, thanks.
>Hi Beth,
>
>I'm not sure if it's helpful or not, but usually if you want to relase the form from Init, you would return .f. rather than clicking on some buttons...
>
>>Hi All,
>>
>>I have a form that can be called 2 ways, with or without a passed variable.
>>
>>do form 'reorder.scx'
>>or
>>do form 'reorder.scx' with .T.
>>
>>in the init of the form, I process the data, then if the parameter is .T., I run the exit code
>>
>>form.init()
>>PARAMETERS plrun
>>LOCAL llok, lncnt, lnloop
>>IF VARTYPE(gareorder) = "C"
>>
>>ENDIF
>>IF plrun
>> THISFORM.command1.CLICK()
>>ENDIF
>>
>>button.click()
>>LOCAL lncnt, llok, lnloop
>>
>>= processreorder()
>>THISFORM.RELEASE()
>>
>>
>>but the form stays up.
>>
>>What could be the cause? I had this working at one time. I am thinking a Set command of somekind.
>>
>>Any thought?
>>
>>TIA
>>Beth