Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking wehter an object exists?
Message
From
02/03/2001 08:18:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00481248
Message ID:
00481293
Views:
10
>Is there any way to check wether an object exists? f.e, How can i knbow wether the object thisform.txtlabel exists on my form or not?
>
>tia,
>
>
>Vincent

Vincent,
There are many ways. 2 generic ones used frequently :
1) llObjExist = type('oObj')='O' and !isnull(oObj)
2) llObjExist = type('oObj.name')='C'
Second sounds to be easier but not all objects have name property.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform