datagrid Column grand total
Andre.Bisseret
Andre.Bisseret at inria.fr
Tue May 5 02:23:59 EDT 2009
Le 5 mai 09 à 01:55, Josep a écrit :
>
> Hi,
>
> It's posible calculate the total for a column using the column
> templates?
> Any tip of how do it? I need to calculate a grand total for all the
> items
> inside the datagrid...
> Where is better perform the operation?
>
> I'm blocked with it...
>
>
> Thanks in advance,
> Josep M
>
Bonjour Josep,
Don't know if it is the better way with dataGrid but you might use a
variable (say tVar)
put the dgText of group "DataGrid X" into tVar
so in tVar you have a liste of lines of tab separated items and you
may do all what you want on them
(for example :
set the itemDel to tab
repeat for each line li in tVar
add item 1 of li to totalCol1
end repeat
HTH
Best regards from Grenoble
André
More information about the use-livecode
mailing list