Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PRINT '''''' (solved)
#1
How do I translate this to ZX BASIC?

PRINT ''''''

(print several blank lines)
Reply
#2
The ' character in Sinclair BASIC is used for CHR(13) (new line). But in most BASIC dialects it's used as a shot form for REM (comment).
So I prefer to use the latter implementation and discard the new line.

You can print a new line using CHR$(13). In ZX Basic, [url=https://zxbasic.readthedocs.io/en/docs/chr/]CHR[url] allows several characters to be specified. So:
Code:
PRINT CHR$(13, 13, 13, 13, 13, 13)

should work.

Can you try it, please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)