>Hi Fabio.
>
>>TYPE("someField") return correct type for M,G,.....
>>
>>For a VarChar it return "C".
>>This is documented.
>
>This isn't a bug because in VFP, Varchar isn't really a new data type -- it's simply a character string that certain VFP functions automatically trim. I agree it would be nice that TYPE() would return the expected value, but it's due to how strings are treated in VFP.
>
>Doug
This is not true.
Varchar field save the string + lenght. No trim is done.
It is a different field.
CREATE CURSOR bugbug (bug V(10))
INSERT INTO bugbug VALUES (' ')
INSERT INTO bugbug VALUES (' ')
scan
? LEN(bug)
endscan
Fabio