Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

UNDOABLE Object

  • Last UpdatedNov 10, 2025
  • 1 minute read

This object allows you to add functionality to the undo and redo stacks.

Methods

Name

Result

Purpose

description(STRING)

NO RESULT

Adds description text to the undoable

add()

NO RESULT

Marks the database with the description text and adds this undoable to the undo stack

endundoable()

NO RESULT

Marks the database again at the end of the change.

undoAction (STRING)

NO RESULT

Specify a command to be executed when this undoable is taken off the undo stack

redoAction(STRING)

NO RESULT

Specify a command to execute when this undoable is taken off the redo stack.

clearAction(STRING)

NO RESULT

Specify a command to execute when this undoable is cleared without any associated undo/redo being performed.

Command

  1. To use this object, first create an undoable object, and define the undoAction(), redoAction() and clearAction()methods to define the execution strings.

  2. Call the method add() to mark the database and add the undoable object to the undo stack.

  3. Make the set of changes that you may wish to undo, then call the method endundoable() to mark the end of the changes.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in