How do I Read TextBox input number

Get help using Construct 2

Post » Sun Feb 01, 2015 10:21 am

Hello , what i need is to read the number from textBox user has added and assign the number to global variable.
B
11
S
3
G
1
Posts: 418
Reputation: 1,780

Post » Sun Feb 01, 2015 10:34 am

If you're triggering it from a button, then when the button is clicked set the global variable to TextBox.Text . You'll also probably want to set the textbox type to number. If you're going without the button, then have a different variable that stores the number. Then, have an event for when TextBox.Text != PreviousNumber and use it to set PreviousNumber = TextBox.Text .
B
6
Posts: 16
Reputation: 284

Post » Sun Feb 01, 2015 10:35 am

Like this ?
You do not have the required permissions to view the files attached to this post.
B
47
S
16
G
9
Posts: 1,097
Reputation: 11,180

Post » Sun Feb 01, 2015 11:43 am

yes like this , thank you :-) , i forgot to INT
B
11
S
3
G
1
Posts: 418
Reputation: 1,780


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, MaujDeveloper and 7 guests