setData Method (clipboardData Object)

Assigns data in a specified format to the Clipboard.

[JavaScript]

bSuccess = clipboardData.setData( sDataFormat, sData, iPos );

[VBScript]

bSuccess = clipboardData.setData( sDataFormat, sData, iPos )

Parameters

sDataFormat

String that specifies one or more of the following data format values.

Text

Specifies the text format.

LineText

Specifies the line text format.

BoxText

Specifies the box text format.

sData

Specifies text data as string.

iPos

Optional. Specifies the position in the Clipboard history if you want to set older clipboard data. If this is zero or omitted, the current data is assigned.

Examples

[JavaScript]

clipboardData.setData("Text", "Hello!");

[VBScript]

clipboardData.setData "Text", "Hello!"

Version

Supported on EmEditor Professional Version 5.00 or later.