QTAtoms QT Atom commands |

### QT_CountChildrenOfType

QT_CountChildrenOfType(containerRef; parentAtomOffset; atomType; numAtoms):error
| containerRef | Longint | Atom container reference
| parentAtomOffset | Longint | Parent atom offset
| atomType | String4 | Atom type
| numAtoms | Longint | Number of atoms
| error | Longint | Error result

Returns the number of atoms of a given type in the child list of the specified parent atom.

Parameter containerRef specifies the atom container. It must have been previously obtained with a call to QT_NewAtomContainer.

Parameter parentAtomOffset specifies the parent atom for this operation. To reference the root level atom, set parentAtomOffset to 0.

Parameter atomType specifies the atom type for this operation.

Parameter numAtoms receives the number of atoms.

Related commands

QT_GetChildrenTypes | Retrieves all children atom types in the child list of the specified parent atom

QTAtoms © Escape
Generated by QDoc 2.8 on Tue, Jan 27, 2009 20:29:45