Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate total values when check column on grid is true
Message
 
 
À
31/07/2007 15:13:55
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01244964
Message ID:
01244983
Vues:
37
>Hello Naomy
>
>Your Question is :
>Do you want to calculate totals for the whole grid or put totals in an extra column of the grid?
>
>i want to calculate , no on any column in my Grid but on a textbox in my form the value of the column , for example : €totalinvoice , where the grid column checkbox is true.
>
>for example
>Columns on my grid : Check , nº invoice , totalinvoice
>
>check           nº invoice      totalinvoice
>.T.             11111               1000,00
>.T.             22222                500,00
>.F.              3333                100,00
>
>my textbox total on my form outside the grid is equal to : (1000,00+500,00)=1500
>
>Thanks, i hope you understand better now.
>
>Luis Santos

Sure, it's much better now.
select MyTable
sum TotalInvoice to lnTotal for Check = .t.
thisform.txtTotal.value = m.lnTotal
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform