Format Property

See Also33XK6M5

Applies To

OLE control2HQDVVU.

Description

Determines the format when sending data to and getting data from an application that created an object.  Not available at design time.

Usage

[form.]ole.Format [ = format ]

Remarks

This property determines the format used with the Data and DataText properties.

Use the ObjectAcceptFormats, ObjectAcceptFormatsCount, ObjectGetFormats, and ObjectGetFormatsCount properties to get a list of the acceptable data formats for a specific class of OLE object.

Many applications that provide objects support only one or two formats.  For example, Microsoft Draw accepts only the CF_METAFILEPICT format.  Note that although CF_METAFILEPICT resembles the symbolic constant CF_METAFILE (numeric value 3) defined in CONSTANT.TXT, it is actually a string literal and would be assigned as:

Ole1.Format = "CF_METAFILEPICT"

 

In many cases the list of formats an object can accept (ObjectAcceptFormats) is different from the list of formats an object can provide (ObjectGetFormats).

Data Type

String7WSH0XQ


See Also

Data Property2W08UX1

DataText PropertyMBTZNK

Format, Format$ Function1EQ2BPO

ObjectAcceptFormats PropertyOSMY8L

ObjectAcceptFormatsCount PropertyCGOYZQ

ObjectGetFormats Property1CNFCPK

ObjectGetFormatsCount PropertyDDT1TX