[SOLVED] Set text > Box value

For questions about using Classic.

Post » Sat Sep 15, 2012 3:44 pm

Hi guys,

I'm wondering what's the syntax to set a Text value to a Box entered value ?
To be more exact, here's my screen :



As you can see, there's a green text, and a box form where we can enter text.
I want the green text to display what's entered in the box form.

What's the syntax to do this ? Actually I'm stuck at the "Set text" action.
Thanks in advance.

Cheers.Lapstern2012-09-15 19:33:37
B
5
S
1
Posts: 36
Reputation: 653

Post » Sat Sep 15, 2012 7:12 pm

Set Text to TextBox.Text should work fine I think =)
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sat Sep 15, 2012 7:33 pm

WORKS FINE
Thanks !
B
5
S
1
Posts: 36
Reputation: 653

Post » Sat Sep 15, 2012 8:02 pm

Oh yeah, by the way, do you know how to set a text without touching to the already set text ?

e.g. if the already set text is "Hello", I want to "add" to this text the world "What?"

Cheers.
B
5
S
1
Posts: 36
Reputation: 653

Post » Sat Sep 15, 2012 9:01 pm

This:
Set Text to Text.Text + "What?"
B
79
S
24
G
54
Posts: 4,749
Reputation: 40,761

Post » Sat Sep 15, 2012 9:44 pm

TWO PROBLEMS RESOLVED IN ONE !
Thanks to both of you guys.
B
5
S
1
Posts: 36
Reputation: 653


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests