Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Negative Numbers shown without a - minus
Message
From
28/08/2014 12:48:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01606633
Message ID:
01606670
Views:
63
>>>It seems like I remember this can be done - how can I have a negative number like -999.99 appear as 999.99 within a textbox? I thought this could be done or perhaps at least done with the negative number appearing as red.
>>>
>>>Thanks in advance....
>>>
>>>Mel
>>
>>ABS()
>>and
>>DynamicBackColor, DynamicForeColor
>
>
>Ahhhh..... good idea... thanks....

Still not quite sure you're doing the right thing. I tried to see a few possible cases where such a requirement was possible, and it all came down to "I wouldn't do it that way". If it was an accounting thing, then the negative amount should be on the other side - at least that's what the accountants taught me. If it's a negative debit, then it should be a credit. Unless it's a cancellation, in which case it must be negative. Showing it as positive is basically display of incorrect information.

If it's just that your users can't grasp the concept of negative numbers, then again I wouldn't do it that way... I'd try to find a way away from them :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform