Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is .NULL.= .NULL.?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00398289
Message ID:
00398577
Views:
29
>Frank,
>
>Here's how I use these two functions.
>
>VarType() is for checking the type of something that I know exists. It is faster than Type() in doing this, so if I know the item does exist I will use VarType() to check its data type.
>
>Type() is for checking things that I am not sure exist. It is slightly slower than VarType() but it never errors out for non-existant things.

Jim,

Wouldn't it be better to use VARTYPE() for variables, and to use PEMSTATUS() for objects? That way, you should never get an "error"?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform