HTBasic Help
×
Menu
Index

Code 102

 
Code 102 returns the current VIEWPORT and WINDOW values. The return array should be a two dimensional REAL array with two rows and four columns. The first row is assigned the values of the current window. The second row is assigned the values of the current viewport. For each, the X min, X max, Y min, and Y max values are assigned to the first through fourth columns, respectively. The following program demonstrates this capability:
 
10  REAL W(1,3)
20  GESCAPE CRT,102;W(*)
30  PRINT "The current window   is";W(0,0),W(0,1),W(0,2),W(0,3)
40  PRINT "The current viewport is";W(1,0),W(1,1),W(1,2),W(1,3)
50  END