>>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é