setData method
[This documentation is preliminary and is subject to change.]
Assigns data in a specified format to the dataTransfer object or the clipboardData object.
Syntax
VARIANT_BOOL retVal = object.setData(format, data);
Standards information
There are no standards that apply here.
Parameters
format [in]
Type: BSTR
A BSTR that specifies the format of the data to be transferred, using one of the following values.
Text
Transfers data formatted as text.
URL
Transfers data formatted as a URL.
data [in]
Type: VARIANT
A VARIANT of type VT_BSTR that specifies the data supplied by the source object. This information can be descriptive text, a source path to an image, or a URL for an anchor. When you pass "URL
" as the format parameter, you must use the data parameter to provide the location of the object that is transferred.
Remarks
The value of the format parameter is not case-sensitive.
See also
Reference
Conceptual
Build date: 6/12/2012