Loops in Crystal Report 9.0

mrkamran
10-13-2004, 03:46 AM
Hi,
is it possible that i sum up a value in a group footer with a loop. for example i have a group in group footer i have a calculated field, now i want that in report footer i make a formula and sum every value of that group footer's field through a loop. can we create a loop which read through a group not record.
Thanks

MKoslof
10-15-2004, 05:34 PM
You're in luck. Crystal 9 has the functionality to implement code loops within formula or CR natively. The syntax is:



StringVar MyField:="";
NumberVar Counter:=1;

Loop
MyField:=MyField+(Mid({myTable.myField},Counter,1);
'do work, whatever you need to do
Until Len({myTable.myField})=Counter;

MyField

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum