Hi, Hilmar
You're right, it's obvious what's happening - VFP looks only at the first letter.
CREATE CURSOR myCursor (myField Grigore(5,3))
creates a general datatype field.
I was asking because I tend to consider this as a bug. VFP should error, not to create a wild guess datatype field. What do you think?
Thanks.
>Well, it seems quite clear, to me, what happened. If you look at the syntax, after the field name you are supposed to put a single letter, to indicate the field type. "D" is short for "Date". Perhaps VFP is a little flexible, in case you want to write "DATE" instead of "D", for instance.
>
>And perhaps we might consider it a bug, with the idea that VFP should reject anything except "D" and "date" (and the equivalents for other field types).
>
>But anyway, that is what is obviously happening. VFP just looks at the of the field type, and decides that it is a date.
Grigore Dolghin
Class Software.