Hi Doug ---
The following works if the Form's name property is the same as the SCX file name:
cForm='frmmyform'
IF WEXIST(cForm)
ZOOM WINDOW (cForm) NORM
ELSE
DO FORM (cForm)
ENDIF
>I have a VLS (Very Large Scale)database application, which allows moving rapidly from one form to another and back.
>I have noticed that in several cases, that a user is able to get multiple instances of the same form running, which may be hidden behind the main screen.
>
>How can I test for whether or not a form is already running, and just activate it, instead of DOing another instance?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05