jmac13
Member
Hi All,
I'm using open edge 10.2b and I'm using a query object and i want to use last-of method.
e.g.
But it not very Elegant as you have to use a number for the break e.g. 7 in this case rather than saying if last-of(s-level4) when its not a query object. So is there a better way of doing this or I am stuck with using a number.
I'm using open edge 10.2b and I'm using a query object and i want to use last-of method.
e.g.
Code:
hanQuery:query-prepare("For each ttRecs break by tt-prdeld.pordno~
by tt-prdeld.pordln~
by tt-prdeld.stpgrp~
by tt-prdeld.s-level1~
by tt-prdeld.s-level2~
by tt-prdeld.s-level3 ~
by tt-prdeld.s-level4").
repeat:
if hanQuery:last-of(7) then do:
/*do something*/
end.
hanQuery:get-next(). /*Get the next line of the query*/
if hanQuery:query-off-end then leave.
end.
But it not very Elegant as you have to use a number for the break e.g. 7 in this case rather than saying if last-of(s-level4) when its not a query object. So is there a better way of doing this or I am stuck with using a number.