Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Negative Numbers shown without a - minus
Message
 
 
To
29/08/2014 12:00:51
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:
01606729
Views:
65
>I would create a custom class of the textbox. Then add an Assign method to the Value property with the following:
>
>
>LPARAMETERS txValue
>this.ForeColor = RGB(0,0,0)
>IF VARTYPE(txValue) = "N"
>  IF txValue >= 0.00
>    this.Value = txValue
>  ELSE
>    this.Value = "(" + ABS(txValue) + ")"
>    this.ForeColor = RGB(255,0,0)
>  ENDIF
>ELSE
>  this.Value = txValue
>ENDIF
>
Thank you sir.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform