general undo methods?
Dar Scott
dsc at swcp.com
Sun Feb 20 14:15:25 EST 2005
On Feb 18, 2005, at 1:53 PM, Richard Gaskin wrote:
> Any of you have pointers to general methods for implemening undo
> across an app?
In a simple case, I have each undoable action push a line onto the end
of a bunch of lines in a global. For an undo, the code simply pops the
line and gives it to 'do'.
To keep from getting confused, I put each undoable action in a handler
with a name, say 'abc' and it uses the handler 'undoAbc' in the line
pushed onto the end of the undo list.
Dar
--
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**********************************************
More information about the use-livecode
mailing list