Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check for existence of a control on a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00288347
Message ID:
00288902
Vues:
20
Hi Barbara,

>Christof's suggestion was correct. However, if the control is .Null, his code will give you .T. back but your base class code will still bomb. You'll need to check to see if the value is .Null, OR, and simpler, check to see if the the control NAME is type "C"

How do you set a control to NULL? *g* The only way I ever got this was when I manually decreased the internal object reference counter.

For actual objects, TYPE("object") is sufficient. Of course, if we are dealing with object reference properties, as well, than you need some more checking as you have indicated.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform