Set Collection - Contains Method

Does the supplied instance exist in the collection?

Member of Set Collection (PRIM_SCOL)


NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the object is found in the collection
Object*InputPRIM_OBJTInstance to be searched for


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


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

LANSA Version 15, April 2020