RetroBASIC
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
RetroBASIC ReadOnly Archive
Home
Help
Search
Login
Register
RetroBASIC
»
Retrogamecoding(.org)
»
EGSL
»
newline character don't exist?
« previous
next »
Print
Pages: [
1
]
Author
Topic: newline character don't exist? (Read 1618 times)
GEEK
Guest
newline character don't exist?
«
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?
Logged
Cybermonkey
Administrator
Posts: 0
Re: newline character don't exist?
«
Reply #1 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.
Logged
Print
Pages: [
1
]
« previous
next »
RetroBASIC
»
Retrogamecoding(.org)
»
EGSL
»
newline character don't exist?