LOTUSSCRIPT/COM/OLE CLASSES


CreateObject method
Example

In a document in Edit mode, creates an OLE object in the current rich-text field.

Note CreateObject is not supported under OS/2, under UNIX, or on the Macintosh.

Defined in

NotesUIDocument

Syntax

Set handleV = notesUIDocument.CreateObject( [ name$ [ , type$ _
[
, filePath$ ] ] ] )

Parameters

name$


type$
filePath$
Return value

handleV


Usage

You must specify either a type$ or a filePath$, but not both. If you specify a filePath$, you create the object in a rich-text field. You must, however, code a GetObject statement to give LotusScript a handle on the object.

The current document must be open in Edit mode and the cursor must be in an editable rich-text field.

With no parameters, this method displays the Create Object dialog box, which allows the user to select the object to create.

Language cross-reference

CreateObject function in LotusScript language

Example
See Also