Important: The information in this document is obsolete and should not be used for new development.
CountComponentsYour application can use the
CountComponentsfunction to determine the number of registered components that meet your selection criteria. You specify the selection criteria in a component description record. The
CountComponentsfunction returns the number of components that meet those search criteria.
FUNCTION CountComponents (looking: ComponentDescription): LongInt;
- A component description record. Your application specifies the criteria for the component search in the fields of this record.
- The Component Manager ignores fields in the component description record that are set to 0. For example, if you set all the fields to 0, the Component Manager returns the number of components registered in the system. Similarly, if you set all fields to 0 except for the
componentManufacturerfield, the Component Manager returns the number of registered components supplied by the manufacturer you specify.
CountComponentsfunction returns a long integer containing the number of components that meet the specified search criteria.
SEE ALSOSee page 6-36 for information on the component description record.