home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / REFEXAMP.ARC / GOTOWND1.PRO < prev    next >
Encoding:
Text File  |  1988-06-21  |  454 b   |  20 lines

  1. %====================== gotowindow/1          ===============================
  2. PREDICATES
  3.   output(INTEGER)
  4.  
  5. CLAUSES
  6.   output(N):-
  7.     N<1000,!,
  8.     WNO=1+N mod 2,
  9.     gotowindow(WNO),write(N,' '),
  10.     N1=N+1,output(N1).
  11.   output(1000):-!,beep,output(1001).
  12.   output(N):-
  13.     WNO=1+N mod 2,
  14.     shiftwindow(WNO),write(N,' '),
  15.     N1=N+1,output(N1).
  16.  
  17. GOAL makewindow(1,7,7,"Window 1",0,0,25,40),
  18.      makewindow(2,7,7,"Window 2",0,40,25,40),
  19.      output(0).
  20.