Previous Document Next Document

Object Model Reference : Classes : C : Clipboard : Properties : Clipboard.Empty


Clipboard.Empty

Property Empty As Boolean

Description

Member of Clipboard

The Empty property returns a True or False value associated with presence of data in the system Clipboard. Unlike the Valid property, which verifies the presence of a specific type or data (such as text or graphics), the Empty property looks for the presence of any data in the system Clipboard.

The Empty property returns a read-only value.

VBA example

The following VBA example checks whether there is any data in the Clipboard. If there is data present, it is pasted in the active layer. If there is no data in the system Clipboard, a message displays in a message box.

Sub ClipboardEmpty()
 If Not Clipboard.Empty Then
  ActiveLayer.Paste
 Else
  MsgBox "There is no data in the Clipboard."
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.