Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate total values when check column on grid is true
Message
De
01/08/2007 09:49:31
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:
01245143
Vues:
45
Hello Naomi

Thanks for your reply, but i need you help because i'am not a professional developer and in your reply you say :

Forgot to mention, that you may create a method UpdateTotals() for the form with the code I posted earlier
(only remove Check = .t. and use just Check) and call this method from Check.Click event


select MyTable
sum TotalInvoice to lnTotal
thisform.txtTotal.value = m.lnTotal



this.value = this.value
thisform.UpdateTotals()
my first question is :
how can build method UpdateTotals() and where i place them on the form init procedure ??
second:
this code

select MyTable
sum TotalInvoice to lnTotal
thisform.txtTotal.value = m.lnTotal
where i place them ? .

I think you tell me to place on the click event of my column Check1 this code :
this.value = this.value
thisform.UpdateTotals()
but , like i say in my first question , where i place an build the method :
method UpdateTotals()


Actually , in my code i have 3 procedure on my column check1 :
Click,InteractiveChange and LostFocus.
Maybe it´s to much for execute what i need ?

Sorry, but like i said i'am not a professional programmer. could you give me some help.

Many thanks Naomi
Luis Santos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform