GetText Method

Applies To

DataObject object.

Description

Retrieves a text string from the DataObject using the specified format.

Syntax

String = object.GetText( [ format])

The GetText method syntax has these parts:

Part

Description

object

Required. A valid object name.

format

Optional. A string or integer specifying the format of the data to retrieve from the DataObject.


Settings

The settings for format are:

Value

Description

1

Text format.

A string or any integer other than 1

A user-defined DataObject format passed to the DataObject from SetText.


Remarks

The DataObject supports multiple formats, but only supports one data item of each format. For example, the DataObject might include one text item and one item in a custom format; but cannot include two text items.

If no format is specified, the GetText method requests information in the Text format from the DataObject.

See Also

GetFormat method, GetFromClipboard method, PutInClipboard method, SetText method.

Example

See the GetFormat method example.