Skip to Content
0
Nov 10, 2005 at 07:25 PM

Loop over a table from end to beginning?

2186 Views

I want to loop over a STANDARD TABLE in the opposite direction, i.e. starting with the last entry up to the first entry.

What'S the best way to do this?

Do I have to make a copy of the table first and reverse the sorting?

Can I use LOOP in some way?

Or shall I do something like

DO n TIMES

READ TABLE t INDEX i.

ENDDO.

What if I have a HASHED TABLE (no read with index) ?

Message was edited by: Daniel Humberg