design time

Hey,
I have DO loop with the VAR from which I would like to hide a frame. I have named the frames with numbers for this reason eg frm_1, frm_2 ... However I do not know the syntax to use at design time. Eg
Do i = 1 to 5
frm_**number that i is currently on in my loop**:VISIBLE = FALSE.
END.
Because I do not know the number at design time how do I code to make Progress use the VAR value?
Is it something like frm_ VALUE(var) ?
Cheers. Regards
 
Hi
If all frames have this same parent and sequence of frame is good you can use something like this:
=========================================
DEFINE VARIABLE w-frame AS WIDGET.
/* max number of frame for example 6 */
DEFINE VARIABLE c-max_frame AS CHARACTER INIT "6".

w-frame = FRAME FRAME-1:HANDLE.

REPEAT:
w-frame:VISIBLE = NO.

w-frame = w-frame:NEXT-SIBLING.

IF w-frame = ? OR w-frame:NAME = "FRAME-" + "c-max_frame" THEN
LEAVE.
END. /* repeat */
=========================================
I hope that I understand your problem and you understand my solution.
Rafał
 
Back
Top