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

Compare with Current View Page History

« Previous Version 2 Next »

Array Collection - Contains Method

Does the supplied instance exist in the collection?

Member of Array Collection (PRIM_ACOL)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Boolean

True if the object is found in the collection

Object

*Input

PRIM_OBJT

Instance to be searched for

Details


Contains returns True if the reference supplied in the Object parameter is found in the collection.

Example


In this example, a button is shown or hidden based on the result of the Contains method.

     #Button.Visible := #Collection.Contains(#Reference)

See also

All Component Classes
Technical Reference

  • No labels