Undo

Description

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

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Web ActiveX

DataWindow control

Syntax

PowerBuilder

integer editname.Undo ( )

Web ActiveX

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

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.

NotePowerBuilder environment For examples and for use with other PowerBuilder controls, see Undo in the PowerScript Reference.

See also