Deleting The Last Character in A String Livecode Language

ぃ、小莉子 提交于 2019-12-24 05:42:30

问题


I need to delete last character in a string Livecode.

I have wrote this below in English.

on mouseUp    

   replace last character with Backspace in field"dialed"

end mouseUp

I am a newbie, so please use simple answers :) Thank you.


回答1:


Deleting the last character of a field is very simple:

on mouseUp
  delete the last char of fld "Dialed"
end mouseUp



回答2:


If you think that is nice, what about:

delete character 2 of word 3 of line 4 of fld "dialed"


来源:https://stackoverflow.com/questions/33816040/deleting-the-last-character-in-a-string-livecode-language

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!