Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two fields having the same name
Message
De
11/10/1996 22:03:38
 
 
À
11/10/1996 15:50:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00009656
Message ID:
00009856
Vues:
41
>Thanks for all the answer I received about my duplicate fields name problem.
>
>I can see two solutions that might work.
>
>The first is to use the SCATTER and GATHER TO MEMBER. But, I will prefer the second one which is to use the low level file functions to change the header of the table. Does anyone already done that? Any example?

I never done something like that. Maybe it help you to know that:
1. The first field name starts at position 33 in the dbf file;
2. The information for each field takes 32 bytes. So, the second field name starts at the position 65, ...;
3. Each field name has a maximum length of 10 bytes (this is the hotest tip of all! :)) If the length of the field name is less than 10, the other characters are chr(0). Anyway, the name is ended in chr(0).

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform