Share via


OLETypeAllowed Property

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

Control.OLETypeAllowed[ = nValue]

Return Value

  • 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

Applies To: OLE Bound Control | OLE Container Control

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.

See Also

Reference

DEFINE CLASS Command

DocumentFile Property

Other Resources

Properties (Visual FoxPro)