Project

General

Profile

display_fmt.p

Alexei Kaigorodov, 06/20/2019 04:11 AM

Download (490 Bytes)

 
1
define variable fmt as character no-undo.
2
define variable valstr as character no-undo.
3
define variable val as int no-undo.
4
        
5
put "====" skip.
6

    
7
repeat:
8
  import unformatted fmt.
9
  import unformatted valstr.
10
  put fmt skip.
11
  put valstr skip.
12
  val = INTEGER(valstr).
13

    
14
   /* this will output a line to a down frame; iterating the loop will */
15
   /* cause an implicit DOWN statement which generates the line end */
16
   display string(val, fmt) with frame f down.
17
end.
18