>Hi,
>
>I am facing a problem with code execution,
>
>I am calling a form (which is modal) with NOSHOW option.
>
>This form does some processing and automatically unloads.
>
>It is processing the form in background..... but it is not waiting for the form to close. The control is shifted to the next statement following the
>
>DO FORM "formname" WITH "parameters" TO "variable" NOSHOW
>
>Now my next statement depends on the variable which is returned by the form.
>
>Please note that I dont want to use DO WHILE...ENDDO or FOR...ENDFOR as this hampers my foreground process by giving a wait status.
>
>I would be gratefull if you could help me.
>
>Thanks & Regards,
>KUMAR.
After
DO FORM "formname" WITH "parameters" TO "variable" NOSHOW
try adding the following line:
formname.Release
If you have some kind-of long processing - move the code in the init event of the form.
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!