Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric DBF-fields to Word doc?
Message
 
 
À
15/05/2001 05:04:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00507167
Message ID:
00507179
Vues:
11
Hi!

Try to use some functions in the SELECT statement for VFP data, like INT and other that convert numeric to integer value. Or just convert data to string on the fly in the SELECT statement:

SELECT ltrim(STR(MyNumericField,12,0)) as MyNumericField, ...

This way you can pre-format any values before they returned by the SELECT statement.

HTH.

>Hi,
>
>VFP 6.0, Word97, MailMerge. String variables OK, but a numeric field without
>decimals shows up like this: 123.0 instead of 123
>
>Solution, other than duplicating the number as a string field in my DBF?
>
>Rolf
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform