Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug in CREATE CURSOR command?
Message
From
19/12/2004 09:28:15
 
 
To
19/12/2004 09:22:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00970382
Message ID:
00970384
Views:
16
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform