Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore Design Flaw Heads-UP!
Message
From
09/07/1999 13:46:10
 
 
To
09/07/1999 08:03:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00238826
Message ID:
00239531
Views:
24
>While I'm here, I think that you are also mistaken about the VARTYPE() function, which you describe as performing exactly as documented. Looking that one up I find the last sentence to say that it returns "U" if you specify a variable that doesn't exist. Can you blame anyone for assuming that an object would also be considered a 'variable'. No where does the Help warn the user that it can/will give an error under specific conditions, while the statement cited certainly leads one to believe that "U" is the worst possible outcome to be expected.

It does "work" when passing an object. This was the (IMHO, special) provision made after the initial function was introduced and it did not handle unknown variables. What still causes an error is checking a property in an unknown object.

I explained my opinion ti tis fullest in the post you are referring to, and I won't beat the horse now, but I will simply restate: If you are getting an error with VARTYPE, then you are using it for something it was not designed for.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform