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:

 

 

[label]

{object}.Undo

[GIVING {return}]

 

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:

  1. For a single-line EDITTEXT object, the return value is always one (1).

  2. For a multiline EDITTEXT object, the return value is one if the operation is successful or zero if it fails.

  3. If the value returned is zero, the ZERO Condition Flag is set.

  4. The OVER and EOS Condition Flags are always cleared.

  5. An undo operation can be undone.

  6. For improved performance in the Application Server environment, do not specify the optional return value unless needed.

  7. When using the PL/B Web Server, this method is not supported.

 

 

See Also: Method Syntax, EDITTEXT Methods, EDITNUMBER Methods, RICHEDITTEXT Methods

 



PL/B Language Reference SetUnicode Method UndoActionName (RICHEDITTEXT)