... request, whether a textbox contains a certain letter ?

Get help using Construct 2

Post » Sun Feb 12, 2017 9:41 am

How do I request, whether a textbox contains a certain letter ?

For example , when the letter "p" is entered into a TextBox i want something to happen...


Or... how can I make that Keyboard Events are still executed, while there is something written in an active TextBox ?
B
9
S
3
G
4
Posts: 58
Reputation: 2,799

Post » Sun Feb 12, 2017 10:07 am

You can either check as the person is typing or afterwards using the find system text expression.

find(src, text)

It will return a -1 is the letter is not there.
B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Sun Feb 12, 2017 11:34 am

Thanks a lot !
B
9
S
3
G
4
Posts: 58
Reputation: 2,799


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Iakkery and 31 guests