Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code
Message
From
12/02/2009 03:31:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
12/02/2009 03:25:20
Muthu Vel
Sty Company
India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Code
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01381170
Message ID:
01381171
Views:
61
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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform