Boriel Basic Forum
PRINT '''''' (solved) - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16)
+---- Thread: PRINT '''''' (solved) (/showthread.php?tid=2300)



PRINT '''''' (solved) - zarsoft - 2023-01-27

How do I translate this to ZX BASIC?

PRINT ''''''

(print several blank lines)


RE: PRINT '''''' - boriel - 2023-01-28

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?