Progress 4GL: Labelling a field from a variable

Status
Not open for further replies.
T

tom01

Guest
I am having trouble labelling a field(s) on a frame. The number of fields and the required labels are determined at run-time.

the required labels are stored in char array:

w-indarray[]


I am using the following loop to add the required fields to the frame

do i = 1 to w-nooff:
form w-sstrings with frame f1.
w-sstrings:label in frame f1 = w-indarray.
end.


But I get an error:

Widget array-element requires constant subscript.


I have googled but the only occurrence looks slightly different and I'm not sure if the solution is applicable. http://www.mofeel.net/258-comp-databases-progress/5295a6889.aspx

Alternatively, is there any way I can reference the elements of w-indarray[] as string literals, then presumable labelling would be simple.

Thanks for your time.

Continue reading...
 
Status
Not open for further replies.
Top