Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if an object exists
Message
From
09/05/1998 13:35:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/05/1998 13:25:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00098172
Message ID:
00098304
Views:
38
>Hello Cetin,
>
>>>I didn't clarify, you're right.I meant type() and isnull() would be used to check
if type("oControl")="O" and !isnull(oControl)
Cetin
>>Ooops. Reading other replies I also learned that TYPE([oControl.Name]) = "C" was not enough and my oldie type()+isnull() is still the way to go despite some milliseconds (hope saves with failing in type() part).
>Why do you think so? I'm sure that checkin for Name property is enough to be
>sure about object's existence...
After some chat with you, now I also agree that TYPE([oControl.Name]) = "C" is enough. As I learned :
- Scatter name oName wouldn't be treaded like a real object.
- And with that exception Name property cannot be prevented to be seen.
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
Next
Reply
Map
View

Click here to load this message in the networking platform