Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A codding problem
Message
From
27/11/2002 07:26:39
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
 
 
To
27/11/2002 00:24:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00725057
Message ID:
00727490
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform