>I have a "do form" command in a .prg file
>
>There are code before and after the "do form" command
>
>How can I do to stop .prg execution and only continue it when form is released
>
>Looked up in set commands but didn't find any reference
As others said, you can make the form modal but then this form is the only form that the user can interact with. If you want to have other forms that the user can switch to and still pause the PRG code, you might try the following:
DO FORM MyForm
DO WHILE WEXIST("My Form Name")
INKEY(1.0,'S')
DOEVENTS
ENDDO
I have not tried this -- but it might work. I think I have seen some other solutions for this as well (maybe another will know).