Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Percentage TextBox
Message
From
23/11/1997 03:12:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00061514
Message ID:
00061806
Views:
41
>I was wondering if anybody knows how to create a Percentage TextBox. What I >want to be displayed is '86.53%' but the data is stored as 0.8653. This is >simular to the '%' function used in Excel. Supposing you want this just to show (and not to be really used as a value)
..inputmask='999.99%'

ProgrammaticChange
this.value=this.value*100
If you want the original value to be kept (in case you need to save it), you can make another textbox (visible) which will have inputmask 999.99% and value of the first textbox.value*100 whenever the first textbox's value changes.

back to same old

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

Click here to load this message in the networking platform