Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

setData method

Assigns data in a specified format to the dataTransfer object or the clipboardData object.

Syntax


 retVal = object.setData(format, data);

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.

Standards information

There are no standards that apply here.

Remarks

The value of the format parameter is not case-sensitive.

See also

Reference
IHTMLDataTransfer::clearData
IHTMLDataTransfer::getData
Conceptual
About DHTML Data Transfer

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.