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:
00237932
Views:
11
>... under runtime when passing an undefined variable. There was recently some off-line discussion of a problem with the VARTYPE function generating an error if the variable being passed was undefined under runtime conditions. Indeed, I did not see any such error in development. In testing this on a machine with VFP 6 SP3 runtime only, VARTYPE is returning U for undefined variables passed to it.

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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform