Reproduced from the Cincinnati Osborne Group’s newsletter, COGWheels
Here are two hints and two routines which you might find useful.
HINT #1: If you need to print a whole line of one character, use the STRING$ function. It saves a lot of typing. It works like this:
If you want a whole line of asterisks (look it up in your ASCII table in the manual) which is ASCII code 42, just say (for 52 character screen display):
10 PRINT STRING$(52,42)
where 52 means print 52 characters with the ASCII code 42. You can print anything you like.
If you want to scroll of the screen, instead of a whole string of PRINT statements, just issue a:
10 PRINT STRING$(24,10)
where 10 is the ASCII character for a line feed. You can use it for anything, and it can be used in a graphics mode if you want fancy screen decorations. (Character 127 is especially nice as a shady character on some computers.)
HINT #2: Avoid using the CLEAR statement within a GOSUB routine. The statement will clear memory so well that the computer will forget where it is supposed to RETURN to!
CLEAR should be used with caution.