Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format field for negative number
Message
From
23/06/2006 03:36:38
 
 
To
23/06/2006 00:27:00
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01129712
Message ID:
01131044
Views:
16
>Hi, sorry i may have confused you. What i want is to have negative numeric value enclosed in parentheses instead of showing as - sign. I tried the function @( and it works but I can't get rid of the empty spaces within the parentheses.
>Let say i have -7810 and format '@Z(9,999,99.99', it shows (....7810) instead of (7810). What i to have the parenthese nicely enclosed the number.
>
>Note: ..... denote empty spaces in the above example.
>
>thanks
It seem like Transform does not behave exactly according to help. Try this
x=-7810
?Chrtran(Transform(x,'@Z(9,999,999.99'),' ','')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform