PasteOK Property

Object List Next Object

Defined By:
OLE Control

Description:

Indicates whether the clipboard contains a Ole Object and can be pasted into the designated OLE control.

Settings:

The following lists the possible return value for PasteOK:


Setting Description


True Clipboard contents can be pasted.

False Clipboard contents cannot be pasted.

Details:

When this property returns True, the Clipboard contains a valid OLE object that can be pasted into the OLE control. If the Clipboard does not contain a valid OLE object, this property returns False.

Use the OleTypeAllowed property to specify the type of object (linked or embedded) that can be pasted into the OLE control. You paste an object into the OLE control by setting Action=5 (Paste). The dialog provides the user with more flexibility, by allowing them to choose whether to link or embed the object.

If your application supports the Paste command in the Edit menu, this property is useful for enabling or disabling the commmand based on the PasteOK return value. Enable and disable menu commands by setting their Enabled property to True and False, respectively.

You can use the OleType property to determine the type of object that was pasted into the OLE control.

Data Type: Integer (Boolean)