Insert OLE Object

This system function adds an OLE object to a given media object.

Parameters

Media Object Control

Input, required. The media object FC to affect.

Item Name

Output, required. The object to which to return the name of the item. Set the parameter to an alphanumeric constant (<Literal>), <Blank>, <Zero>, or an applicable object from the object list.

Item

Input, required. The object to which to return the next available ID. Set the parameter to an alphanumeric constant (<Literal>) or <Null>.

ObjectRef

Output, optional. Reserved for future functionality.

Returns

This system function returns the name of the inserted object, as well as the next available ID value to the objects indicated by Item Name and Item, respectively. It also returns one of these two values:

NOERROR

Indicates that the system function succeeded.

E_FAIL

Indicates that the system function failed.Get OLE Item