Hi Satya,
Just to add... in VFP 6.0 there is a new function VARTYPE() in which you do not require the quotes. It is faster than TYPE() but it requires that the variable exists.
>I was thinking that since myvar is a variable, I should use type(myvar) .
>But it is wrong, I have to use type('myvar') .
>
>
>Thanks again ....