Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype() type works different for hyperlink?
Message
From
07/07/2003 18:54:48
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00807623
Message ID:
00807731
Views:
32
This is only an example...suppose a module wants to make sure an application object, called oApp exists:
if vartype(oApp) <> "O"
    * Houston, we have a problem....
endif
>>>>>Yes, you should avoid using VARTYPE() if variable/property may not exists.
>>>>
>>>>Vartype() can return 'U'. So when is it proper to use Vartype() and have it return 'U'?
>>>
>>>Never.
>>
>>Really? Never use vartype() to check for the existance of an object?
>
>I'm not sure what you mean.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform