Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbf to txt
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01141644
Message ID:
01141686
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform