Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN.ActiveForm is not an object
Message
From
21/08/1998 13:10:32
 
 
To
21/08/1998 12:23:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128822
Message ID:
00128842
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform