Important: The information in this document is obsolete and should not be used for new development.
CountComponentInstances
TheCountComponentInstances
function allows you to determine the number of open connections being managed by a specified component. This function can be useful if you want to restrict the number of connections for your component or if your component needs to perform special processing based on the number of open connections.
FUNCTION CountComponentInstances (aComponent: Component): LongInt;
aComponent
- The component for which you want a count of open connections. You can use the component instance that your component received in its open request to identify your component.
DESCRIPTION
TheCountComponentInstances
function returns the number of open connections for the specified component.