[Solved] How do I insert a CR/LF in a text box?

Get help using Construct 2

Post » Sun Mar 01, 2015 8:17 pm

I have a large text box. I want to append text but start a new line each time. Can this be done?
Last edited by locohost on Sun Mar 01, 2015 8:30 pm, edited 1 time in total.
B
13
S
4
Posts: 280
Reputation: 1,566

Post » Sun Mar 01, 2015 8:18 pm

yes use this after each text u have or want to make it show something under the top text from left or center alignment u use , set text to "yourtext" &newline&"yoursecondtext" append is for adding text at end of the current text,("yourtext"&append&"nexttext" will be basically same thing as you write "yourtext"&"anothertext") i wont recommend it using append&newline&"yourtext to be appended" not sure even if it works... that way

append is also used for text chatts but the newline i think does the trick
ImageImage
B
54
S
14
G
64
Posts: 1,252
Reputation: 39,495

Post » Sun Mar 01, 2015 8:30 pm

Yep that's the answer. I was looking for chr() function and asc() and anything but newline :-/

Thanks again :-)
B
13
S
4
Posts: 280
Reputation: 1,566

Post » Sun Mar 01, 2015 8:31 pm

yes construct 2 has its own language, it doesnt uses native javascript, u should check expressions manual :) its verry usefull i see ur used with native languages c#?
ImageImage
B
54
S
14
G
64
Posts: 1,252
Reputation: 39,495

Post » Mon Mar 02, 2015 11:45 am

I've been coding for over 30 years with nearly every language you can think of. Yes I know C# very well :-)

And you're absolutely right, I need to make a full, detailed pass through the C2 manual :-)
B
13
S
4
Posts: 280
Reputation: 1,566


Return to How do I....?

Who is online

Users browsing this forum: NextFriday, revengeracer and 15 guests