Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding values...& store them
Message
 
À
09/01/2003 14:08:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00739936
Message ID:
00740205
Vues:
25
Alex,
Try to just use the TextBox values.
procedure AddTextBoxesToTotal(oform)
with oform
  .txtProme.Value=(.txtText1.Value+.txtText2.Value;
                    +.txtText3.Value+.txtText4.Value)/4
endwith &&oform
endproc
>I have this problem for allmost a month...
>
>I have a table, that is call table1...
>in this table a have 5 values all numerics: dato1,dato2,dato3,dato4 & prome.
>
>I want to make a form the in went the user introducess values to the dato fiels, they will add and in the prome fiel will display the result and store it...
>
>So far the code I have its like this:
>procedure AddTextBoxesToTotal(oform)
>with oform
>prome.table1.Value=(Text1.table1.Value+Text2.table1.Value;
> +Text3.table1.Value+Text4.table1.Value)/4
>endwith &&oform
>endproc
>
>this is a procedure...
>
>
>Now I just can get it...
>Is there a esear way to get what i want ???
>
>When I do this procedure with out any values of a table its cool, but went I do it with a table it doesnt work.
>
>
>Can any body help me...
>
>Thanks...
>
>PS: I hate being a newbie
Caroline
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform