CanUndo Method


8.7C, PLBCMP GUI Only

 

The CanUndo method determines whether there are any actions in an EDITTEXT, EDITNUMBER, or RICHEDITTEXT object's undo queue. The method uses the following format:

 

 

[label]

{object}.CanUndo

[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 status of the queue.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the value returned is zero, the ZERO condition flag is set.

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

  3. A return value of zero (0) indicates no undo actions exist in the queue.

  4. 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 CanRedoMethod Clear Method