Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code
Message
De
12/02/2009 03:31:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
12/02/2009 03:25:20
Muthu Vel
Sty Company
Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Code
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01381170
Message ID:
01381171
Vues:
60
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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform