I am not exactly sure what are you trying to do. But if you want to close the _application_ (in addition to closing your form) as soon as your condition becomes true, you can use QUIT and that will take care of the problem.
if !bNoInst
QUIT
endif
>I have this in the form INIT:
>...
>...
>if !bNoInst
> return .F.
>endif
>
>I call this form in a .prg with DO FORM MyForm and a Read Events. The problem is that the form did not release. Looking at the debugger the Read Events line is still active. Why this?
>
>Thanks in advance
>Héctor L.
Hector Correa