Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display minus in ()
Message
From
01/04/2014 12:44:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
01/04/2014 12:12:40
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597872
Message ID:
01597901
Views:
34
>I want to display -123 as (123)
>
>in the Form.init
>
>for -123 in
>
>
>ThisForm.pgfChild.Page1.grdchild.Column10.txtDisc.InputMask ="@(999"
>
>
>it will show @( -123
>
>
>ThisForm.pgfChild.Page1.grdchild.Column10.txtDisc.format ="@(999"
>
>
>it will show -123

.format="("
.inputmask="999"

IOW, the characters between @ and the space (which is missing in your case) is the general qualifier, and the 999 (or other such characters) is the so-called picture (from old picture clauses in @... say commands) and apply to individual character positions in the textbox.

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