OLETypeAllowed Property

Applies To   See Also

Returns the type of OLE object (embedded or linked) contained in a control. Read-only at design time and run time.

Syntax

Control.OLETypeAllowed[ = nValue]

Settings

nValue

Returns a value that indicates the type of OLE object (embedded or linked) contained in a control. Possible values are 0 (Linked), 1 (Embedded), –1 (an OLE Bound control that does not contain an OLE object), and –2 (ActiveX control (.ocx)).

Remarks

OLETypeAllowed is only useful when you specify a setting for the DocumentFile property.

Note   You can set the OLETypeAllowed property in code to create a linked OLE object using the DEFINE CLASS command.