Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate the total.
Message
De
26/02/2001 07:42:50
 
 
À
23/02/2001 16:12:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00478403
Message ID:
00479445
Vues:
40
>Thanks for your reply but, I thing I have not explain very well.
>I have consider severals things:
>1.- The grid has infinity rows
>2.- The calculate must to be automatic
>3.- The result must to be put in a text box.
>For example....
>
>This is the grid
>--------------------------------------------------------------
>Code Description Quantity Price Total
>001 Chiken 2 5 (2*5)=10
>205 Tomatoes 1.5 2 (1.5*2)=3
>859 Bread 15 .5 (15*.5)=7
>--------------------------------------------------------------
> This is the textbox ----->>>>Total Operation (10+3+7)=20
>
>The user can put 3 items or infinity items, due to I can not use fid1+fid2+fid3
>I need somethnig like autosum from Excel "sum(since::until)"
>I hope have been very clear.
>TIA

I believe Cetin and Lal have given you your answers. As they indicated, number of rows is really irrelevant. Total can still be calculated by SQL SELECT or probably other possible methods also, then the total in the textbox updated dynamically as changes are made in the grid.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform