Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_SCREEN.ActiveForm is not an object
Message
De
21/08/1998 13:10:32
 
 
À
21/08/1998 12:23:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00128822
Message ID:
00128842
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform