Implementing UNDO

Craig Newman craig at
Fri May 21 09:12:25 EDT 2021


What are you doing here on the dark side??

Do you mean something like this, with a field and a button?  in the card script:

on textChanged

set the currentText of this cd to fld 1

end textChanged

on undoText

get the currentText of this cd

delete the last word of it

set the text of fld 1 to it

set the currentText of this cd to it

end undoText

and in the button:
on mouseUp
end mouseUp


> On May 21, 2021, at 7:48 AM, Klaus major-k via use-livecode <use-livecode at> wrote:
> Hi friends,
> any hints on how to implement some UNDO mechanism into a LC standalone? 
> The stack(s) in question will not only handle TEXT.
> Thanks for any insight!
> Best
> Klaus
> --
> Klaus Major
> klaus at
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list