InsertObject

Description

Displays the standard Insert Object dialog box, allowing the user to choose a new or existing OLE object, and inserts the selected object in the OLE control.

Syntax

olecontrol.InsertObject ( )

Argument

Description

olecontrol

The name of the OLE control in which you want to insert an object

Returns

Integer. Returns 0 if it succeeds and one of the following values if an error occurs:

If any argument’s value is null, InsertObject returns null.

Examples

Example 1

This example displays the standard Insert Object dialog box so that the user can select an OLE object. InsertObject inserts the selected object in the ole_1 control:

integer result

result = ole_1.InsertObject()

See also