Change it to
if type('form2')='O' and NOT ISNULL(form2)
Or itterate through _SCREEN.Forms collection.
>I have an app that has two forms. Each are instantiated using:
>
>do form form1 name form1 linked
>do form form2 name form2 linked
>
>Form1 needs to know if form2 is running. If, from form1 I do:
>
>if type('form2')='O'
>
>it always returns true, even if form2 is closed and no longer operating, but debug will show its value as .null. if it's not running. How can form1 know if form2 is still alive and well?
>
>Thanks a bunch,
>Allen
--sb--