Undo Method
8.7C, PLBCMP GUI Only
The Undo method copies the current contents of the clipboard to the EDITTEXT, EDITNUMBER, or RICHEDITTEXT object at the current caret position. Data is inserted only if the clipboard contains data in text format. The method uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. An EDITTEXT, EDITNUMBER or RICHEDITTEXT object that is accessed.
return
Optional. A Numeric Variable that indicates the success or failure of the method.
Flags Affected: EOS, OVER, ZERO
Note the following:
For a single-line EDITTEXT object, the return value is always one (1).
For a multiline EDITTEXT object, the return value is one if the operation is successful or zero if it fails.
If the value returned is zero, the ZERO Condition Flag is set.
The OVER and EOS Condition Flags are always cleared.
An undo operation can be undone.
For improved performance in the Application Server environment, do not specify the optional return value unless needed.
When using the PL/B Web Server, this method is not supported.
See Also: Method Syntax, EDITTEXT Methods, EDITNUMBER Methods, RICHEDITTEXT Methods
![]() |