Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field name is dup or invalid problem
Message
De
09/10/2007 06:56:16
 
 
À
08/10/2007 17:03:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01259572
Message ID:
01259644
Vues:
15
>>Hi All,
>> I am blind today. I have the following in code and get the error "Field name is a duplicate or invalid" when it hits the create table line. lcFilename is a valid path and new table name, no table by that name in the directory.
>>
>>  lcFilename = gPrintTables + "trnsct3.dbf"
>>  ...
>>  CREATE TABLE (lcFilename) FREE ( contract_id C(12), service_id C(12), ;
>>     sub_id C(3), startdate D(8), enddate D(8) )
>>
>>
>>Can someone tell me, please, what I am missing? It looks the same as four other lines I have in other progs.
>
>"contract_id" is 11 characters, longer than limit of 10 for free tables.
>
>Another useful tip is to not include lengths for field types such as Date, Datetime, Integer etc. which have only one possible length e.g. use
>
>... startdate D, enddate D ...
>
>This avoids any chance of errors caused by typing in the wrong size, mismatching parentheses etc.

I Knew I was blind. Duh. :)

Thanks for pointing out my problem.

Beth
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform