See Also
Applies To
OLE control.
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
String
Data Property
DataText Property
Format, Format$ Function
ObjectAcceptFormats Property
ObjectAcceptFormatsCount Property
ObjectGetFormats Property
ObjectGetFormatsCount Property