grandMA3 User Manual Publication
CloseUndo(handle)
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » CloseUndo(handle)
|
Version 2.0
|
Description
The CloseUndo Lua function closes an open undo list. The function returns a boolean indicating if the function succeeds.
Undo lists need to be created to be closed. See more about this in the CreateUndo function.
Arguments
- Handle:
The handle of a created undo list.
Return
- Boolean:
- True / 1: The undo list was closed.
- False / 0: The undo list is still in use and cannot be closed.
Example
This example creates an undo list, performs a series of commands that are added to the undo list, and closes the undo list. Now the series of commands can be oopsed with one oops command.
Lua |
return function() |