Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Urgent! Export dbf to Excel with Meaning field names
Message
From
17/11/1997 05:18:36
 
 
To
17/11/1997 03:48:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00060615
Message ID:
00060620
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform