home *** CD-ROM | disk | FTP | other *** search
- Figure 2. Restore the Screen
-
-
- Example 1: Restore screen column by column (80 buffers).
-
- IF FILE('main.scr')
- RESTORE FROM main.scr ADDITIVE
- delay = 20 && Adjust this to your hardware.
- FOR xx = 40 TO 79
- buff1 = '_buffer' + LTRIM(STR(xx))
- buff2 = '_buffer' + LTRIM(STR(79 - xx))
- RESTSCREEN(0, xx, 24, xx, &buff1)
- RESTSCREEN(0, 79 - xx, 24, 79 - xx, &buff2)
- FOR yy = 1 TO delay
- NEXT
- NEXT
- ENDIF
- RELEASE ALL LIKE _buffer*
-
-
-
- Example 2: Restore screen row by row (25 buffers).
-
- IF FILE('main.scr')
- RESTORE FROM main.scr ADDITIVE
- delay = 20 && Adjust this to your hardware.
- FOR xx = 0 TO 24
- buff1 = '_buffer' + LTRIM(STR(xx))
- RESTSCREEN(xx, 0, xx, 79, &buff1)
- FOR yy = 1 TO delay
- NEXT
- NEXT
- ENDIF