ISClipboard.Clear

Description

This function clears the clipboard content.

Syntax

object.Clear

Part Attribute Type Description
object Required
The object always implements the ISClipboard interface

Example

Display the clipboard content before and after the clearing.

Dim aClipboard
Dim aMessage

Set aClipboard = Profile.GetClipboard
aClipboard.SetText("Simple text for example")

aMessage = "The clipboard before the clearing: " & vbNewLine & aClipboard.GetText
aClipboard.Clear
aMessage = aMessage & vbNewLine &_
  "The clipboard after the clearing: " & vbNewLine & aClipboard.GetText

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface the clipboard content can be found in Edit > Show Clipboard.

Version information

Added in v7.8.0