Array Collection - OccurrencesOf Method

Find the number of occurrences of an instance in the collection

Member of Array Collection (PRIM_ACOL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerNumber of occurrences
Object*InputPRIM_OBJTInstance 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

Febuary 18 V14SP2