Skip to content

RedoType - DfBaseRichEdit

Returns type of redo operation at top of redo queue

Type: Function
Return Data Type: integer

Syntax

Function RedoType Returns integer

Call Example

Get RedoType to integerVariable

Description

Returns the type of redo operation at the top of the redo queue.

If the redo queue for the control is not empty, the value returned indicates the type of the next action in the control's redo queue. If there are no redoable actions or the type of the next redoable action is unknown, the return value is zero (Unknown).

The types of actions that can be undone or redone include typing, delete, drag-drop, cut, and paste operations. This information can be useful for applications that provide an extended user interface for undo and redo operations, such as a drop-down list box of redoable actions

This function has no effect if control is not paged.

Possible return values are:

Constant Meaning
utUnknown Unknown
utTyping Typing
utDelete Delete
utDragDrop Drag and Drop
utCut Cut
utPaste Paste

Sample

This sample determines the next redo operation type available for control oRichEdit1 and displays it to the user in a message box.

Procedure CheckRedoType
    integer iRedoType
    string sRedoType

    get RedoType of oRichEdit1 to iRedoType

    if (iRedoType = utUnknown) ;
        send Info_Box "No redo operations available"
    else begin
        if (iRedoType = utTyping) move "Typing" to sRedoType
        else if (iRedoType = utDelete) move "Delete" to sRedoType
        else if (iRedoType = utDragDrop) move "DragDrop" to sRedoType
        else if (iRedoType = utCut) move "Cut" to sRedoType
        else if (iRedoType = utPaste) move "Paste" to sRedoType

        send Info_Box sRedoType "Next Redo operation available"
    end
End_Procedure  // CheckRedoType

Return Value

Type of redo operation at the top of the redo queue.