Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a bug in CREATE CURSOR command?
Message
De
19/12/2004 09:28:15
 
 
À
19/12/2004 09:22:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00970382
Message ID:
00970384
Vues:
15
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform