Description
Cancels the last edit in an edit control, restoring the text to the content before the last change.
Applies to
Syntax
PowerBuilder
integer editname.Undo ( )
Argument |
Description |
---|---|
editname |
A reference to a DataWindow control. Reverses the last edit in the edit control over the current row and column. |
Return value
Returns 1 when it succeeds and -1 if an error occurs. If editname is null, Undo returns null.
Usage
To determine whether the last action can be canceled, call the CanUndo method.
PowerBuilder environment
For examples and for use with other PowerBuilder controls, see the section called “Undo” in PowerScript Reference.
See also