openedge - Using frames in progress 4gl -
can me understand how display following pattern using progress 4gl frame:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5.
i have tried this:
define variable integer no-undo. define variable b integer no-undo. =1 5 frame f: b = 1 frame f: display space skip. pause. end. end.
/* while displaying answer overwritten, how display answer side side? */
if sending output file this:
define variable integer no-undo. define variable b integer no-undo. output "output.txt". = 1 5: b = 1 a: put b. end. put skip. end. output close.
using display , frame not text files or printers. when create frame , display "a" in defining single position variable displayed.
every time display value placed in same position.
you can make down frame , move new line each iteration of outer loop still have 1 position per line.
define variable integer no-undo. define variable b integer no-undo. = 1 5 frame f: b = 1 a: display b frame f. end. down frame f. end.
to have multiple positions need multiple variables or array or can build string (doydoy44's solution). here example array:
define variable integer no-undo. define variable b integer no-undo. define variable c integer no-undo extent 5 format ">>>>". = 1 5 frame f: b = 1 a: c[b] = b. end. display c frame f. down frame f. end
Comments
Post a Comment