How to set a string and integer to a text object [solved]

For questions about using Classic.

Post » Thu Oct 21, 2010 2:48 pm

Hey, I was just wondering, how do you write an integer variable into a text object with a string e.g.

"This is a number"+global('varNumber')

It just displays the string...
B
1
G
2
Posts: 4
Reputation: 633

Post » Thu Oct 21, 2010 3:00 pm

Replace the "+" with "&".

"This is a number "&global('varNumber')

That'll work. :)

And welcome to the forums!
B
22
S
6
G
10
Posts: 1,026
Reputation: 7,491

Post » Thu Oct 21, 2010 3:06 pm

[quote="PixelRebirth":nztbqtmg]Replace the "+" with "&".

"This is a number "&global('varNumber')

That'll work. :)[/quote:nztbqtmg]
Thanks that works,

[quote="PixelRebirth":nztbqtmg]And welcome to the forums![/quote:nztbqtmg]
Thanks :)
B
1
G
2
Posts: 4
Reputation: 633


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest