|
Summary
Clear clipboard contents.
Syntax
Boolean Clear ()
Description
Clipboard activities, such as copy and paste, can be performed in the emulation window. An application can clear the text contained in the clipboard by calling the Clear method. This action
is only legal if the ClearClipboard property is True. 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.
The Clear method takes no parameters and returns a boolean. If the clipboard can be successfully cleared, 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_CLEAR_CLIPBOARD. This method can only be called after the VT220 emulation window has been created and initialized.
See also: Copy and Paste methods.
Example
Result = VT220Client.Clear () If Result = False Then MsgBox "Unable to clear clipboard", 64, "Sample Program" End If
|