Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate total values when check column on grid is true
Message
From
01/08/2007 09:49:31
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01244964
Message ID:
01245143
Views:
41
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform