Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox control.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00134740
Message ID:
00134925
Vues:
15
>>Hello everyone!
>>
>>Anybody knows how to make a textbox control behave like a ATM machine when entering a dollar amount.
>>As you type the digits move from right to left.
>
>Sergio,
>
>
>There is a numeric textbox class available in the libraries here.

Hi Jim,

While we are at it, I had to modify the SetDecimal() method a bit. It failed when there were no decimals.

LOCAL lnDec
*-- CHANGE - JCM - September 09, 1998 - 15:43:48
*-- Failed when no Decimals, so I bracketed the code
IF RAT(".",ALLTRIM(THIS.InputMask)) # 0
lnDec = LEN(ALLTRIM(THIS.InputMask)) - RAT(".",ALLTRIM(THIS.InputMask))
this.nDecimal = MAX(1,10 ^ lnDec)
ELSE
this.nDecimal = 1
ENDIF



José
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform