| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Rich Text Template Support - Overview >====== CanUndoRTF code template ====== | [[canredortf code template.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[colorrtf code template.htm|{{btn_next_n.gif|Next page}}]] | | || {{notebox.jpg|NoteBox.jpg}} **This template (and its associated code templates) has been deprecated, and is now replaced by the [[tplcontrolrtf.htm|RTF Text Control]] template.** The CanUndoRTF code template checks the RTF control to see if there is data in the undo buffer. A TRUE value is returned if an undo can be done. A FALSE value is returned if there is no undo data in the buffer. This template calls the Undo method. ** Prototype:** **CanUndo** ** Return Data Type: BYTE** **  Example method calls:** **loc:undo = oRTF_RTFTextBox.CanUndo() !Check for data in the Undo buffer** **Template Prompts:** **Associated RTF control** Select the RTF control from the drop-down list. All controls on the Window are included in the list. This field in required. **Variable to receive Undo Status** Press the ellipsis button (') to choose a variable to receive the return value from the method.