Previous Document Next Document
Clipboard.Valid

Property Valid As Boolean

Member of Clipboard

The Valid property returns a True or False value associated with presence of valid data in the system Clipboard. Valid information is anything that can be cut or copied into the Clipboard, such as text and graphics selected within a document, or one or more files or folders.

The Valid property returns a read-only value.

The following code example checks to see there is valid data in the Clipboard. If there is valid data present, it is pasted into the active layer. If there is no valid data in the Clipboard, a message displays in a message box:

Sub ClipboardValid() 
 If Clipboard.Valid Then 
  ActiveLayer.Paste 
 Else 
  MsgBox "There is no valid data currently in the clipboard." 
 End If 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.