Software Developer's Kit - ChemDraw

Send comments on this topic
Add Method
See Also 
Filename
Name of the DataObject file to be added.
index

The location of an object in a collection, counted from the top, starting with 1.

Description

Member of ChemDraw Control.DataObjectFiles.

Adds a DataObject file to the collection.

Syntax

Visual Basic
Public Sub Add( _
   ByVal Filename As String, _
   Optional ByVal index As Variant _
) 

Parameters

Filename
Name of the DataObject file to be added.
index

The location of an object in a collection, counted from the top, starting with 1.

Remarks

Adds a new file to a DataObjectFiles collection object.

Example

Private Sub command2_click()
    ChemDrawCtl.DataObject.Files.Add (CurDir() & "\FileName.cdx")
End Sub

See Also