first -of prob ?

make

Member
hi,
is there a chance to use the first-of function for more than one break- groups ?


greets

Make
 

Crittar

Member
Yes, for example:

for each table1 no-lock
break by table1.field1
by table1.field2
by table1.field3:

if first-of(table1.field1) then
do:
/* Your code */
end.

if first-of(table1.field2) then
do:
/* Your code */
end.

if first-of(table1.field3) then
do:
/* Your Code */
end.
end.

Hope this helps.
 
Top