Dictionary Collection - Contains Method

Does the supplied instance exist in the collection?

Member of Dictionary Collection (PRIM_DCOL)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Boolean

True if the object is found in the collection

Key

*Input

PRIM_OBJT

Key used to access the collection item

Details

Contains returns True if the reference supplied in the Key parameter is used to identify an item 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(#Key)

See also

All Component Classes

Technical Reference

  • No labels