Searches through the objects stored in the RelatedReference property of an item
Member of Carousel (PRIM_CARO)
Name | Type | Data Type | Description |
---|---|---|---|
Result | *Result (Optional) | PRIM_CARO.CarouselItem | Reference to the item containing the reference |
RelatedReference | *Input | PRIM_OBJT | Object instance to search for |
StartItem | *Input (Optional) | PRIM_CARO.CarouselItem | Item at which to start the search |
The FindReference method searches for the object specified in the RelatedReference parameter in the RelatedReference property of the Carousel items. FindReference processing will stop when an item is returned or no item is found.
In this example the found items are given a style to highlight them.
Mthroutine Name(Find) Define_Map For(*Input) Class(#Prim_objt) Name(#Object) Pass(*By_Reference) Define_Com Class(#prim_Caro.CarouselItem) Name(#FoundItem) Reference(*Dynamic) Begin_Loop #FoundItem <= #Carousel.FindReference( #Object #FoundItem ) Leave If(#FoundItem *Is *Null) #FoundItem.Style <= #MyStyles<Highlight> End_Loop Endroutine
Febuary 18 V14SP2