Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type mismatch
Message
 
To
04/12/2001 08:19:17
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00589131
Message ID:
00589522
Views:
31
>Hi Vlad
> That did the trick. I did a TYPE(aAR(3)) and it return a "N" so I didn't
>bother to try VAL(). I quess TYPE() returns the type of data that is held in
>the var not the type of the var. Thanks again.

TYPE() is a funny little guy, you need to pass it the name of a variable you want the value of, and if there is no variable matching that name, it returns the type of that name..
For example
x= 1
y= "1"
? TYPE(x)
=>  Error
? TYPE(y)
=> N   
? TYPE("x")
=> N   
? TYPE("y")
=> C
So be sure when using TYPE() to pass the variable you want the type of as its name, not its value.
Previous
Reply
Map
View

Click here to load this message in the networking platform