Function NonUndoableActionOK displays a dialog informing the user that the action that is about to be performed cannot be undone. If the user selects OK, the function returns TRUE. If the "Show Undo Warnings" preference is turned off, this function just returns TRUE and does not display a dialog.
FUNCTION NonUndoableActionOK : BOOLEAN;def vs.NonUndoableActionOK():
return BOOLEANresultOK := NonUndoableActionOK;import vs
# Function NonUndoableActionOK displays a dialog informing the user that the
# action that is about to be performed cannot be undone.
ok = vs.NonUndoableActionOK()
if ok:
vs.Message('NonUndoableActionOK succeeded')
else:
vs.Message('NonUndoableActionOK failed')Availability: from VectorWorks8.0