Parent Property

Applies To:

Atoms collection

Description:

This object's creator/owner.

Syntax:

LPDISPATCH/Object Atoms.Parent

Remarks:

Read-only.  For the Atoms collection, this property points to the Molecule object to which the atoms belong.

Example:

The following Visual Basic code sets CopyMol to the parent molecule of the atoms collection:

Dim ParentMol As Object        'Parent molecule
Dim TotalAtoms As Object       'Atoms collection
Dim CopyMol As Object          'Molecule object

Set TotalAtoms = ParentMol.Atoms 'Set Atoms collection
Set CopyMol = TotalAtoms.Parent  'Get molecule
'Now CopyMol points to the same thing as ParentMol.

'Code to create ParentMol is omitted.

See Also:

Molecule object


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA