CanUndo method (DataWindows)
Description
Tests whether Undo can reverse the most
recent edit in the editable control over the current row and column.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Web ActiveX |
DataWindow control |
Syntax
[PowerBuilder]
1 |
boolean <span>dwcontrol</span>.<span>CanUndo</span> ( ) |
[Web ActiveX]
1 |
boolean <span>dwcontrol</span>.<span>CanUndo</span> ( ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control |
Return Values
Returns true if the last edit can be reversed
(undone) using the Undo method and false if the last edit cannot
be reversed.
If dwcontrol is null, the method returns
null.
Usage

For use with other PowerBuilder controls, see CanUndo in the PowerScript
Reference.
Examples
These statements check to see if the last edit in
the edit control of dw_contact can be reversed; if yes
the statements reverse it, and if no they display a message:
1 |
IF dw_contact.<span>CanUndo</span>() THEN |
1 |
dw_contact.Undo() |
1 |
ELSE |
1 |
MessageBox(Parent.Title, "Nothing to Undo") |
1 |
END IF |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments