Hi Gerard,
This code is more generic and can be used to check if any variable holds an object even if the object doesn't have name property, like the one created by SCATTER NAME command.
>Hi Sergey, thanks for your reply.
>
>I used the IF TYPE("_Screen.ActiveForm") = "O" AND NOT ISNULL(_Screen.ActiveForm)
>
>and it seemed to work fine.
>
>regards,
>
>
--sb--