playMaker

Author Topic: Delete (back space) letters of a string  (Read 2454 times)

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Delete (back space) letters of a string
« 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

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Delete (back space) letters of a string
« Reply #1 on: May 02, 2016, 11:00:55 AM »
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.

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Re: Delete (back space) letters of a string
« Reply #2 on: May 02, 2016, 12:41:10 PM »
 :(
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
« Last Edit: May 02, 2016, 12:58:48 PM by Kothe »

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Re: Delete (back space) letters of a string
« Reply #3 on: November 05, 2020, 10:24:26 AM »
AWESOME!!!
Have I said how much I love playmaker!!! This is one amazing tool