>Folks,
>
>Remember the hassles wehn you forgot the quotes when using the TYPE() fucntion. Well, you can forget them in VFP6 and use the VARTYPE() function instead. The following code shows both the TYPE() and VARTYPE() functions doing the same thing;
>
>
>MyVar = "ABC"
>
>? TYPE("MyVar")
>? VARTYPE(MyVar)
>
>Var1 = "ABC"
>Var2 = "DEF"
>
>?Type("Var1+Var2")
>? VarType(var1+var2)
>
>
>
>The help file even says that VarType() is faster than Type(). Since Type() is one of the most time consumming of the VFP functions, it is nice to have faster alternative.
>
>There are still some situations where you will need to use the Type() function. If you have a memory variable that contains the name of something else whose data type you want to know, you must use the Type() function. For example;
>
>
>Var1 = 123
>Var2 = "Var1"
>
>? TYPE(Var2)
>? VarType(Var2)
>
>
Great tip, Jim! I use TYPE() all over the place to test object instances and will definitely have to look into this.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05