Textbox Backspace Button

Get help using Construct 2

Post » Sun Aug 11, 2013 7:16 pm

Trying to make a touch button that simulates backspace in a textbox.

Is there a way to use the mid() and len() functions to do this?
like take the middle of the string from start to length - 1 or something and set that as the text ? Am I on the right track here ?
Thanks
B
3
Posts: 16
Reputation: 232

Post » Sun Aug 11, 2013 7:22 pm

Edit: Solved myself by using a family called TextBoxez and doing
on touch, if textbox has focus
set text to mid(TxtBoxes.Text , 0, (len(TxtBoxes.Text ) - 1))
B
3
Posts: 16
Reputation: 232

Post » Sun Aug 11, 2013 10:30 pm

That's the way I used too, I made that question some time ago..

http://www.scirra.com/forum/how-to-use-backspace-in-text-object_topic54955.html?KW=

;)
B
32
S
6
G
5
Posts: 437
Reputation: 6,119


Return to How do I....?

Who is online

Users browsing this forum: aramesh, Dragoonduneman, istero, jaytrott86, Lordshiva1948, lucaralho, zenox98 and 2 guests