Description
Tests whether Redo can restore the edit that was previously undone in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.CanRedo ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control for which you want to determine whether any edits that were previously undone can be restored by the Redo function |
Return value
Boolean.
Returns true if the edit that was previously undone can be restored using the Redo function and false if the edit that was previously undone cannot be restored.
Examples
These statements check to see if the edit in rte_1 that was previously undone can be restored; if yes the statements restore it, and if no they display a message:
IF rte_1.CanRedo() THEN rte_1.Redo() ELSE MessageBox("Test", "Nothing to Redo") END IF
See also