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



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

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 - 09-05-2021

(09-03-2021, 11:16 PM)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 - 09-09-2021

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