numcomponents

A predefined variable which holds the number of components in a file.

Syntax

numcomponents

Comments

The predefined variable can be used both to set and to access the number of components associated with the current file.

This value must be set before the names of components are set or any components are read from the file.

Example

set numcomponents = 5 	// set it to five
read numcomponents	// read it from a file
do numcomponents		// for each component
{
     read compname	// read it
}