![]() |
![]() |
Clipboard.Empty
Property Empty As Boolean
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.
The following code example checks to see if 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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.