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 10:42:28
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:
01245160
Views:
46
Hello Naomi

Like i said , i need your help.
I create the new method
i place the following code on form in procedure INIT and UpdateTotals

on INIT

Public insere
insere=0
THISFORM.PROCVAL.Value = 0.00

local lnTotal as Double
Intotal = 0
select ccheques
sum valor to lnTotal for thisform.Grid1.column1.Check1 = .T.
thisform.total.value = m.lnTotal

on updatetotals
local lnTotal as Double
LnTotal = 0
select ccheques
sum valor to lnTotal for thisform.Grid1.column1.Check1 = .T.
thisform.total.value = m.lnTotal

on the column grid checkbox who as named check1, i place this code :
Procedure Click

this.value = this.value
thisform.UpdateTotals()

I put thisform.Grid1.column1.Check1 = .T., because without .T. VFP return error, but in this moment i have the following error :

error nº 107
message : Operator / Operand type mismatch

Line error nº : 8
Program/function : FORM1.INIT
Line of Code : _VFP.AutoYield = .F.

Sorry, can you help me

thanks
Luis Santos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform