Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A codding problem
Message
De
27/11/2002 07:26:39
Raul Davila
Davila Programming Services
Toa Alta, Porto Rico
 
 
À
27/11/2002 00:24:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00725057
Message ID:
00727490
Vues:
12
In addition,
If the textboxes do not have a variable or field assigned to the CONTROLSOURCE property, just set the VALUE property to 0 (zero) in the form designer and that will make them numeric so that the sum works.

>Alex
>
>With ThisForm
>
> .txt5.value = Val( .txt1.value ) + Val( .txt2.value ) + Val( .txt3.value ) + Val( .txt4.value )
>
>EndWith
>
>i.e. VAL( Str ) = numeric
>
>However, I think that you are either using the wrong controls for this or the wrong data source types for the controls.
>
>Jos
>
>>
>>Man, I have try that but it doesnt seams to work, in the 5 textbox it just add the value of the others like it was a string value, but I want it as a numeric, I want to ADD the values of the previos 4 textboxes and in the 5 I want to add the result by clicking on a button.
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico

Still waiting for FoxPro for LINUX
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform