Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VARTYPE erroring out
Message
From
12/05/2004 10:42:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VARTYPE erroring out
Miscellaneous
Thread ID:
00903174
Message ID:
00903174
Views:
50
Can anyone tell me how the following line of code could possible throw an error:

IF VARTYPE(mdepartment) <> "U"

We get a "Variable mdepartment not found" error.

Well, duh, that is what we are checking. Why is this throwing a runtime error? I have seen VARTYPE() have trouble when objects are involved...like looking for a specific property, but this is just a straight memory variable. How can this be erroring out? We are goung to try using TYPE("mdepartment") instead, but I am still curious as to why VARTYPE() is having problems here...

Thanks,
JoeK
Next
Reply
Map
View

Click here to load this message in the networking platform