Dear Justy,
Since this is a really FAQ, I added FAQ #7975692, which should help you. Take a look.
>
>I would like to close all active forms at one time. I wrote a procedure to do that and used _SCREEN to retrieve the active form. When I run the procedure, it will close the actived forms but miss one. And run again, it also miss one to close. Is it a bug for _SCREEN.form? Code of procedure showed as below:
>
> for each mFORM in .forms
> if upper(mFORM.baseclass) = 'FORM'
> mRLSFRM = mform.name
> release (mRLSFRM)
> release all like frm*
> endif
> endfor
>
>I will link the form with a variable named as name of form when I open the form. Thank you for your help ....
>
>Best Regards,
>
>Justy Chow
If it's not broken, fix it until it is.
My Blog