OLEClass Property

Example   Applies To   See Also

Returns the named class ID of an OLE object. Read-only at design time and run time for an existing object, but can be set for an object when creating it.

Syntax

Control.OLEClass[ = cName]

Settings

cName

The named class ID of the object. This is the registered name of the application that was used to create the object or will be invoked if the object is activated.

Remarks

You set OLEClass property of an OLE container object using the Insert Object dialog box when you initially add an OLE container to a form, or in code when creating an OLE object as part of a class definition. This property is also set when you create OLE objects using the APPEND GENERAL command.

The OLEClass property of an object specifies the application that is used to create or edit the OLE object. To specify the actual contents of the object, set its DocumentFile property.