CR or LF - in a Text Object

For questions about using Classic.

Post » Thu Feb 11, 2010 4:36 pm

How do you do a carriage return in a Text Object? I want output on different on lines.
I tried "Chr(13)"

INI.ItemString("TimeTrial", "Name") & "Chr(13)" & str(global('BestTime')/1000) & " seconds"
B
29
S
8
G
8
Posts: 531
Reputation: 7,181

Post » Thu Feb 11, 2010 4:44 pm

Try using the constant Newline.

It's worked for me in other areas of Construct.

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Thu Feb 11, 2010 5:04 pm

Worked great. Thanks KrushBrother
B
29
S
8
G
8
Posts: 531
Reputation: 7,181

Post » Thu Feb 11, 2010 5:08 pm

It's worth noting Construct never changes any part of a string in double quotes. "Chr(13)" will always appear as those literal characters in the string, since nothing is ever substituted inside double quotes.
Scirra Founder
B
373
S
218
G
83
Posts: 23,434
Reputation: 185,828


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests