delete end chars
JB
sundown at pacifier.com
Sun Aug 24 11:54:58 EDT 2014
Hi Richmond,
That seems to leave me with the string I want to delete.
Even so thank you for the code.
John Balgenorth
On Aug 24, 2014, at 8:46 AM, Richmond <richmondmathewson at gmail.com> wrote:
> on mouseUp
> put fld "TEXXT" into TEXXT
> put the number of chars in TEXXT into CHNMB
> repeat CHNMB times
> if the last char of TEXXT is "A" then
> delete the last char of TEXXT
> end if
> if the last char of TEXXT is "B" then
> delete the last char of TEXXT
> end if
> if the last char of TEXXT is "C" then
> delete the last char of TEXXT
> end if
> put TEXXT into fld "TEXXT"
> end repeat
> end mouseUp
More information about the use-livecode
mailing list