Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbf to txt
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01141644
Message ID:
01141686
Views:
18
>I used COPY TO file.TXT type SDF
>All is OK but only problem in price field (numeric)
>it was exported as: 88.00
>They want it without "." and completed with zeros as the the size of the DBF field
>It should be exported as 000008800
>Thanks
>Moises

And in one command line?
hmm, this should work:
SELECT f1,f2,fetc, padl( ltrim(str(np*100, 9)), 9 , '0') AS txtPrice ;
FROM tblSource ;
to file results.txt
Previous
Reply
Map
View

Click here to load this message in the networking platform