![]() |
PRINT '''''' (solved) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: PRINT '''''' (solved) (/showthread.php?tid=2300) |
PRINT '''''' (solved) - zarsoft - 01-27-2023 How do I translate this to ZX BASIC? PRINT '''''' (print several blank lines) RE: PRINT '''''' - boriel - 01-27-2023 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? |