Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype() type works different for hyperlink?
Message
 
 
To
07/07/2003 17:22:23
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00807623
Message ID:
00807686
Views:
23
>>>I think I understand that, but why does one Vartype() return 'U' while another gets Error?
>>>
>>>I have been using Vartype( oObject.cProperty ) whenever I knew that oObject existed, rather than Pemstatus(), and it works the way I think it should.
>>
>>You used it icorrectly. You shoud use TYPE() instead.
>
>Are you saying I should never use Vartype() if there is a possibility that it will return 'U'?
>If that's not what you're saying can you give me an example where it's used properly and returns 'U'?

Yes, you should avoid using VARTYPE() if variable/property may not exists.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform