Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Urgent! Export dbf to Excel with Meaning field names
Message
De
17/11/1997 05:18:36
 
 
À
17/11/1997 03:48:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00060615
Message ID:
00060620
Vues:
29
>Hi,
> Is it possible to export a dbf file to xls file with a customized field name( first row of the xls file)?
>Thanks!

If I understand your question...
Once you have the final file you wish to export, make one additional temp file as follows

SELECT lname AS LAST_NAME, fname AS FIRST_NAME, midini AS abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz ;
FROM mytable INTO CURSOR tmp

COPY TO mySheet.xls TYPE XL5

The INTO should be a cursor - it will allow the field name length to be more then 10 (but spaces are a not allowed)
Ernest
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform