Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I
Message
 
To
26/01/1999 11:29:53
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00180248
Message ID:
00180312
Views:
21
>to all,
>
>if you use: if type('ObjectName.Name') == "C" like bob suggested you don't have to use the ISNULL function.
>
>I use this method in methods which must be as fast as possible.
>
Hi Walter,

I don't mean to pick, but you don't need the double equal sign there since TYPE() only returns a single uppercase character. Further, even if the function returned "OO" for a different data type, TYPE('ObjectName') = "OO" where 'ObjectName' is an object that would return "O", would evaluate to false. If you reversed the order ("OO" = TYPE('ObjectName') in these circumstance, then there would be a problem. Lastly, there might be some additional overhead in resolving the property reference. Whether or not this is as great as the multiple functions, I don't know.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform