Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test for the existance of an object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00026039
Message ID:
00026061
Views:
36
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform