Playmaker Forum
PlayMaker News => General Discussion => Topic started by: Kothe on May 02, 2016, 06:00:28 AM
-
Hi.
I have been following this topic :
http://hutonggames.com/playmakerforum/index.php?topic=2897.msg13378#msg13378
but I cant make it work. Im doing the same, a custom keyboard, all works right but "delete" letters of the string var.
How can I do to delete the last "letter" of the string ?
Thx
-
If you want to delete the last letter you could get the string length then -1 (from total count) then use 'Get String Left' action to get all the characters except the last one.
-
:(
I used what you told me.
Get string length. Int. Int operator. Add -1. Then set this Int for the Char Count of
Get String Left. Yes, this way the stored result string "hides" the last letter but not deletes it. then if the user going on tipying appears the letter that its supossed to be delete. You know what I mean ?
thx
Edit.
Ok Ok . I think I got it.
The way its.. when the user press delete set the Store result of the GetStringLeft as the new string for the displayed Text.
Im gonna work on it if it is right.
Edit.2.
Wow....smooth and by the numbers! :D
THX
-
AWESOME!!!