|
Summary
Paste text in clipboard.
Syntax
Boolean Paste ()
Description
Clipboard activities, such as copy and paste, can be performed in the emulation window. Pasting text contained in the clipboard to the VT220 emulation window is done by calling the Paste
method.
Any selected text in the emulation window can be copied to the clipboard using the Copy method, and the Paste method can be used to paste the contents of the clipboard into the emulation window.
Before calling this method, an application must make sure that this action can be performed by verifying that the PasteClipboard property is True. This method can only be called after the VT220
emulation window has been created and initialized.
The Paste method takes no parameters and returns a boolean. If the text in the clipboard can be successfully pasted, then the method returns True; otherwise, it returns False. The application should
ensure that the method was successfully executed by checking the return value.
Calling this method is equivalent to setting the VtAction property to VT_PASTE_CLIPBOARD.
See also: PasteClipboard property and the Copy and Clear methods.
Example
Result = VT220Client.Paste () If Result = False Then MsgBox "Unable to paste text in clipboard", 64, "Sample Program" End If
|