>I have created a form to be a status box... I need to tell if that form, which was opened with....
>
>do form myform name myform
>
>is currently open or not prior to writing updates to it. Wexist() doesn't cut it. I found that out the hard way when I accidentally opened over 300 instances of the form before my computer said - 'YEAH RIGHT!!!'
>
>Help!!!!
Peter,
With name clause if 'myform' is in scope you could test it as if you would do for any object.
OTOH for this specific purpose you could do :
do form myform
if type('myform')='O' ;
and !isnull(myform) ;
and myform.baseclass = 'Form'
This relies on the fact that a form instantiated with 'do form' could be referenced by its .scx name (only for the first instance).
Cetin