Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 Varchar Woes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
VFP 9 Varchar Woes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00986077
Message ID:
00986077
Vues:
87
I just upgraded an app and found that the new Varchar is causing some rather surprising issues.

I have some SELECT statements which have the traditional: PADR([expr],xx) as FieldName to create fields of the appropriate length in the cursor. Well, VFP9 is now casting these by default as Varchar. Ok. Fine. Well, I also then copy this cursor out to a Fox2x DBF. Pretty common export scenario. Well, the varchars of any length are all converted to memo fields.

Am I doing something wrong? I can't find anything in the documenation about this. I'm a tad surprised that the default casting for a character expression is varchar. I'm also surprised that a varchar(10) gets turned into a memo field instead of a char(10) with COPY TO.

Do I need to go back and check/fix every SELECT in my code?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform