Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code
Message
From
12/02/2009 03:25:20
Muthu Vel
Sty Company
India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Code
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01381170
Message ID:
01381170
Views:
106
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
Map
View

Click here to load this message in the networking platform