Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check that the object exists
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00425355
Message ID:
00425416
Vues:
7
>If you're sure oApp object exist, you can you more quick way that 'type' function:
>IF PEMSTATUS(oapp,'otoolbar',5)
> oapp.otoolbar.cmdedit.enabled=.f.
>ENDIF
> (suggested that you need to ckeck for toolbar, not a button that is part of toolbar).

Not to be a PITA but, in addition to the above, you should check whether otoolbar is an object using PEMSTATUS(oapp,'otoolbar',3). If not, otoolbar could be a property, in which case the Enabled setting would throw an error.

*snip*
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform