Description

Fills the DataObject with the data of the selection.

Return Type

A Boolean value.   True when the DataObject has been successfully loaded.
Failure Returns False.

Failure conditions:
* pDataObject is not IDispatch compatible with VBRun.DataObject.
* pDataObject is not allocated.
* lClipFormat is not supported.

Syntax

object.DataObjectSetData (pDataObject, lClipFormat, [sDisplayName])

The DataObjectSetData Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataNodes.
pDataObjectRequired. An IUnknown object. An Automation DataObject Object to be loaded with the selection data.
The object must be IDispatch compliant to the VB DataObject.
lClipFormatRequired. A Long value. The clipboard format of the data to be stored or 0 for all formats.
sDisplayNameOptional. A String value.

Remarks

Supported formats - ClipboardFormatNumber(), HDrop/vbcfFiles, vbcfText.