Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate total values when check column on grid is true
Message
 
 
À
01/08/2007 12:25:22
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:
01245175
Vues:
63
You probably meant to say, inspired by your answer I decided to use my own approach? :)

Sorry, can not resist :)

Why do you need it in BeforeRolColChange and why you can not use?
local lnRecno, lnValor
select ccheques
lnRecno = recno('cCheques')
sum valor to lnValor for deposita = 1
locate m.lnRecno
thisform.total.Value = m.lnValor
>Hi Naomi
>
>Q.Ok, good. I meant, what is the ControlSource for the column with the checkbox?
>
>Ans.the controlsource of this column is ccheques.deposita, following your instructions I coded the beforerowcolchange event of the grid to scan my cursor, calculate the total, present the sum in another textbox outside the grid and in the end returning to the original recno(). The code is as follows
>
<snip>

>Thanks for all your help
>Luis Santos
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