General information
Category:
Coding, syntax & commands
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only