Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show + or - with numeric textbox?
Message
De
24/02/2000 15:07:22
 
 
À
24/02/2000 07:28:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00336230
Message ID:
00337019
Vues:
25
>>A numeric textbox will always show a - (minus sign) before a negative number. However, I would like to explicitly show a + (plus sign) when the number is positive, and neither when it is zero.
>>
>>I couldn't find an InputMask or Format property that would do this. Am I missing something? BTW VFP 5.0a.
>>
>>TIA.
>
>The others have given the most and probably best ideas. But one other possibility is to place a small label control in front of the numeric textbox and set its caption to be "+" or "-" depending on the value. Might be ugly, but just aanother idea.

Thanks, I'm sure I'll be able to use this idea elsewhere in my app.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform