Skip to content

Obscure commands, part 7

1 message · 2002-12-09 → 2002-12-09 · Yahoo Group era · View archive on archive.org

Participants: ekrampitzjr

Preserved from the Timex/Sinclair 2068 Yahoo Group (2001–2019), which is no longer online. Text reproduced from the archive.org archive; email addresses masked.

Messages

1. Obscure commands, part 7

ekrampitzjr · Mon, 09 Dec 2002 17:59

7.  ' in PRINT, INPUT, LPRINT statements

This trick is barely touched on in the Timex manual.  Using the 
apostrophe within a PRINT (etc.) statement moves the print position 
to the beginning of the next line.  No semicolons are necessary 
around it.  This saves using a TAB or PRINT AT x, 0 or separate PRINT 
statement, and it potentially could save a lot of memory in a long 
program with a lot of output.  Here's an example:

5>PRINT "Line 1"'"Line 2"

"Line 1" will print at 0,0; "Line 2" will print at 1,0.  Unlike TAB 
the apostrophe does not print over anything else that may already 
have been on line 0 in this example.

Indexed under

BASIC programming