Use format property of the textbox, set to R, Set InputMask to something like 999999
>I have create a form and i have placed three text boxes namely 1, txtfrom 2. txtto 3. txttotal.
>
>I want to subtract value form txtfrom to txtto the result will display in txttotal box with whole number(Integer)
>
> I have write code in gotfocus event in txttotal text box , the code is below
>
>local lcFrom, lcTo, lctotal
>lcFrom = ThisForm.TxtFrom.Value
>lcTo = ThisForm.TxtTo.Value
>lctotal = val(lcto) -val(lcfrom)
>thisform.txttotal.value = lctotal
>
>bu the result display with decimal numer.
>For example the txtto = 850 txtfrom = 650 the txttotal = 200.00 but i want the result is "200" in whole number(Integer)
>
>can anyone kindly answer please?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]