Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know If a Object exist?
Message
From
22/11/1998 20:15:28
 
 
To
22/11/1998 14:23:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00159912
Message ID:
00160381
Views:
19
Hi BOb,

Here are a few:

[1] VARTYPE(loObject.Property) will evaluate to either "C","N","Y","L","O","G","D","T","X","U" ONLY if VARTYPE(loObject) = "O", otherwise an error will be generated.

[2] VARTYPE(loObject.Parent) will evaluate to "O" ONLY if VARTYPE(loObject) = "O" AND it has a Parent, otherwise an error will be generated.

It would be nice if VARTYPE() would just return a "U" in those cases where errors are generated.
- Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform