Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox showing negative amounts in brackets
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01488388
Message ID:
01488394
Views:
73
>Hi,
>
>A client just asked me to display negative amounts in textboxes with the bracket, like (100.00) intead of -100.00. I did that for the reports, but in the textbox I did not find a formatting option for that. So I need to transform with "@(". But how can I combine with thousand seperator?
>
>
TRANSFORM(-1000000.00,"@(###,###.##")
For instance:
ln=-1000000.00
?IIF(ln<0,"(","")+ ALLTRIM(TRANSFORM(abs(ln), '$$,$$$,$$$,$$$.99'))+ IIF(ln<0,")","")
Good Luck
Previous
Reply
Map
View

Click here to load this message in the networking platform