Boriel Basic Forum
print42() to allow CR chr$(13) - 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: Wishlist (https://forum.boriel.com/forumdisplay.php?fid=14)
+---- Thread: print42() to allow CR chr$(13) (/showthread.php?tid=1374)



print42() to allow CR chr$(13) - RandomiserUsr - 2021-09-04

Trying to use CHR$(13) in print42() and it is ignored - could this be implemented please?


Thanks


RE: print42() to allow CR chr$(13) - boriel - 2021-09-05

(2021-09-04, 12:16 AM)RandomiserUsr Wrote: Trying to use CHR$(13) in print42() and it is ignored - could this be implemented please?


Thanks


PRINT42 understands CHR$(13) and also CHR$(22) + CHR$(y) + CHR$(x) (AT y, x).

Code:
#include <print42.bas>

print42("Hello" + chr$(13) + "world")

Can you post your code so I can see what's not working? Rolleyes

Thx!


RE: print42() to allow CR chr$(13) - RandomiserUsr - 2021-09-09

On careful examination it appears it is working. I refactored a routine and added in CHR13 without thinking of the consequences of doing so.
Refactored again and now working as expected.

Thank you Boriel