>I've seen that before but forgot how to do it.
>
>I want to call a method of the active form from the menu.
>If the form is opened there is no problem.
>How do I check any form is active to avoid an error?
>
>I want to do something like
>IF(WEXIST(_SCREEN.ActiveForm))
> _SCREEN.ActiveForm.myMethod()
>ENDIF
>
>but I get is not an object error message.
>
>Thank you.
You can check _SCREEN.Formcount>0
Edward Pikman
Independent Consultant