Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Undo – PB Docs 2021 – PowerBuilder Library

Undo – PB Docs 2021

Undo

PowerScript function

Description

Cancels the last edit in an edit control, restoring the text to the
content before the last change.

Applies to

DataWindow, MultiLineEdit, RichTextEdit, and SingleLineEdit
controls

Syntax

Argument

Description

editname

The name of the DataWindow control, MultiLineEdit,
RichTextEdit, or SingleLineEdit in which you want to cancel
(reverse) the last edit. For a DataWindow control, reverses the
last edit in the edit control over the current row and
column.

Return value

Integer.

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 function.

Examples

This statement reverses the last edit in MultiLineEdit
mle_Contact:

The following statement checks to see if the last edit in the
MultiLineEdit mle_Contact can be reversed, and if so reverse it:

See also

CanUndo


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x