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
28
S
8
G
8
Posts: 530
Reputation: 7,154

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
28
S
8
G
8
Posts: 530
Reputation: 7,154

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
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests