Count Property

Applies To:

Atoms collection

Description:

The number of atoms in the collection.

Syntax:

short/Integer Atoms.Count

Remarks:

Read-only.

Example:

The following Visual Basic example gets the atoms count:

Dim TotalAtoms As Object 'Atoms collection
Dim AtomCount As Integer 'Variable to store atom count
Dim CurrentMolecule As Object 'Molecule object

Set TotalAtoms = CurrentMolecule.Atoms 'Returns Atoms collection
AtomCount = TotalAtoms.Count  'Get atom count

'Code required to create Molecule is omitted.

See Also:



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