Code: Alles auswählen.
READ TABLE role INDEX 2 INTO temp. IF temp IS NOT INITIAL. lines-3 = temp. ENDIF. CLEAR temp.
READ TABLE role INDEX 3 INTO temp. IF temp IS NOT INITIAL. lines-4 = temp. ENDIF. CLEAR temp.
Code: Alles auswählen.
DO.
READ TABLE role INDEX i INTO temp. IF temp IS NOT INITIAL. lines-i+1 = temp. ENDIF. CLEAR temp.
i = i + 1.
ENDDO.
Code: Alles auswählen.
lines-i+1 = temp.
Ja mittels Field-Symbols und ASSIGN COMPONENT comp OF STRUCTURE struc TO <fs>.hyyd1e hat geschrieben:Kann ich das Lösen und wenn ja, wie?
Code: Alles auswählen.
DO 254 TIMES.
READ TABLE role INDEX i INTO temp.
IF temp IS NOT INITIAL.
i = i + 1.
string = i.
CONCATENATE 'lines-' string INTO line.
ASSIGN (line) TO <fs>.
<fs> = temp.
ENDIF.
CLEAR temp.
ENDDO.