Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to test for the existance of an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00026039
Message ID:
00026061
Vues:
34
>>Is there any way to test for the existence of an object programatticaly?
>>
>>For example, if I was going to change the color of THISFORM.lblMyTitle with the command THISFORM.lblMytitle.ForeColor = RGB(255,0,0), can I test for the existence of THISFORM.lblMytitle first so as to avoid a possible crash?
>
>if TYPE("Thisform.lblMytitle")#"O" it is there
>
>Arnon

Thanx!
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform