Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Percentage TextBox
Message
De
23/11/1997 03:12:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061514
Message ID:
00061806
Vues:
46
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform