Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Frx2Word and functions
Message
From
04/09/2000 19:46:54
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00412328
Message ID:
00412336
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform