Skip to content

Paste - DfBaseRichEdit

Pastes the contents of the Windows clipboard into the control

Type: Procedure

Syntax

Procedure Paste

Call Example

Send Paste

Description

Pastes the entire text contents of the Windows clipboard into the control. If text is currently selected in the control, the selected text is replaced with the copied text from the clipboard. If no text is currently selected in the control, the copied text from the clipboard is inserted immediately after the current caret position.

Sample

You can call CanPaste to determine whether a paste operation will be successful.

Procedure PasteText
    Boolean bCanPaste

    Get CanPaste to bCanPaste

    If bCanPaste begin
        Send Paste
    End
End_Procedure