Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Frx2Word and functions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00412328
Message ID:
00412336
Vues:
16
>Hi.
>I have a report that shows the result of a function that is applyed to a numeric value in a table. The function returns the accountant representation to a numeric value into a string, i.e:
>1234567.89--->1,234,567.89
>-1234567.89--->(1,234,567.89)
>
>When i open the resulting .doc file with MSWord, it shows the non-applyed function as if it were a literal field instead of the resulting value, i.e:
>
>myfunction(myvalue)
>
>Can somebody help me with this???

Use TRANSFORM(); there's no need for a UDF to accomplish this:

TRANFORM(nMyNumber, '@( 9,999,999,99')

If you want to eliminate any embedded spaces:

STRTRAN(TRANFORM(nMyNumber, '@( 9,999,999,99'),' ','')
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform