DAY 039: VIEW PRINT
#5
Oh cool - I didn't know about the CLS 2 option to just clear the VIEW PRINT area.  Works great too.  I always had a problem messing up the last line of a screen trying to clear a VIEW PRINT area, like in the example code below.  Now with CLS 2 there is no problem.

Always something to learn.  Thanks for another keyword of the day!

- Dav

Code: (Select All)
View Print 1 To 1

Do
    Cls , Int(Rnd * 16) 'use this one, bottom line clears too
    'Cls 2, Int(Rnd * 16) 'use this one, bottom line does not clear
    _Display
Loop

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
DAY 039: VIEW PRINT - by Pete - 12-19-2022, 04:48 AM
RE: DAY 039: VIEW PRINT - by mnrvovrfc - 12-19-2022, 10:34 AM
RE: DAY 039: VIEW PRINT - by SMcNeill - 12-19-2022, 11:52 AM
RE: DAY 039: VIEW PRINT - by bplus - 12-19-2022, 11:10 AM
RE: DAY 039: VIEW PRINT - by Dav - 12-19-2022, 01:49 PM



Users browsing this thread: 2 Guest(s)