Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype function fixed in SP3...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00237900
Message ID:
00237982
Views:
11
>Mark,
>
>I believe the problem is when vartype() is asked to determine the type of a property for a non-existant object. I believe that it was said that it is by design because vartype() was added to be faster than Type() and therefore is doesn't do the checking the same way and it therefore cannot trap the non-existant object.
>
>All fo this is from memory, so it may not be correct.

I created a form object from the command window, and tested it against an undefined form property [? Vartype(oForm.Test)]. It did return U. I have not had a chance to test this under runtime only, but I will later this evening.

Now, if I set oForm = .null., and test for oForm.Anything, I get an error returned. But Vartype(oForm) will return X at that point.

Or am I missing your point?
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform