RetroBASIC

Retrogamecoding(.org) => EGSL => Topic started by: GEEK on October 23, 2013, 12:32:12 PM

Title: newline character don't exist?
Post by: GEEK on October 23, 2013, 12:32:12 PM
hi scriptwriters!
have a simple question here, how do you store
a newline or return (cr or lf) character in a variable
and print it down?

I tried "\n" and chr(10) but nope...
help please?
Title: Re: newline character don't exist?
Post by: Cybermonkey on October 23, 2013, 01:24:15 PM
This does not work with EGSL output on graphical windows. Only for the console, like this (you'd better use CLScript for that):
Code: [Select]
print ("Hello"..chr(13).."World")or like this:
Code: [Select]
print ("Hello\nWorld")Be aware that EGSL is limited on the text output and input since it's meant for 2D games not text processors.  ;)