Cancels the last edit in an edit control, restoring the text to the content before the last change.
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Web ActiveX |
DataWindow control |
integer editname.Undo ( )
number 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. |
Returns 1 when it succeeds and –1 if an error occurs. If editname is null, Undo returns null.
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 Undo in the PowerScript Reference.