You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

List Collection - OccurrencesOf Method
Find the number of occurrences of an instance in the collection
Member of List Collection (PRIM_LCOL)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Integer

Number of occurrences

Object

*Input

PRIM_OBJT

Instance to be searched for

Details


OccurrencesOf returns a count of the number of times the reference specified in the Object parameter is stored in the collection.

Example


Using the OccurrencesOf method
#Count := #Collection.OccurrencesOf(#Object)

See also

All Component Classes
Technical Reference

  • No labels