Is there a way to dynamically access the labels of a temp-table field defined as an array.
Example:
DEFINE TEMP-TABLE tt FIELD key1 AS CHARACTER
FIELD preco-matrix AS DECIMAL EXTENT 3
LABEL "Label1","Label2","Label3"
INDEX tt1 IS UNIQUE PRIMARY key1.
---------------
hField = handle-of-tt-Buffer:BUFFER-FIELD(2).
DO i = 1 TO hField:EXTENT:
PUT UNFORMATTED "~"" hField:LABEL(i) "~"".
END.
This obviously doesn't work, but I can't find a documented way to do it.
Example:
DEFINE TEMP-TABLE tt FIELD key1 AS CHARACTER
FIELD preco-matrix AS DECIMAL EXTENT 3
LABEL "Label1","Label2","Label3"
INDEX tt1 IS UNIQUE PRIMARY key1.
---------------
hField = handle-of-tt-Buffer:BUFFER-FIELD(2).
DO i = 1 TO hField:EXTENT:
PUT UNFORMATTED "~"" hField:LABEL(i) "~"".
END.
This obviously doesn't work, but I can't find a documented way to do it.