Software Developer's Kit - ChemDraw

Send comments on this topic
Join Method
See Also 
pVal
Indicates the second collection of objects that will be joined to the first collection of objects.

Description

Member of ChemDrawControl.Objects.

Join these objects with some other objects

Syntax

Visual Basic
Public Sub Join( _
   ByVal pVal As Objects _
) 

Parameters

pVal
Indicates the second collection of objects that will be joined to the first collection of objects.

Example

    Dim myObjects1 As ChemDrawControl11Ctl.Objects 
    Dim myObjects2 As ChemDrawControl11Ctl.Objects
    Set myObjects1 = ctlChemDraw.Selection.Objects 

Private Sub cmdCommand1_Click()
    'loads selected objects  
    Set myObjects1 = Me.ChemDrawCtl1.selection.Objects
End Sub

Private Sub cmdCommand2_Click()
    'loads selected objects and then joins them 
    Set myObjects2 = Me.ChemDrawCtl1.selection.Objects
    myObjects1.Join myObjects2
End Sub

See Also