Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type()
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Type()
Miscellaneous
Thread ID:
01437036
Message ID:
01437043
Views:
66
>I don't like the VARTYPE() function personalty. Execute the following code and you will see its limitations.
>
>? TYPE("_screen.Forms.BadProp") && Returns "U"
>
>? VARTYPE(_screen.Forms.BadProp) && Returns Error "Unknown member FORMS"

It's not intended use of the VARTYPE() function. The VARTYPE() function was originally introduced as fast alternative to TYPE() in cases when variable/property exists. Later per developers requests it was extended to handle more case but it still not replacement for the TYPE() function in cases when variable/property may not exist.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform