RelatedReference として格納されたオブジェクトを検索します。
リスト (PRIM_LIST) のメンバ
名前 | タイプ | データ タイプ | 記述 |
---|---|---|---|
Result | *Result (任意) | PRIM_LIST.ListItem | RelatedReference に一致した最初の結果への参照 |
RelatedReference | *Input | PRIM_OBJT | 検索するオブジェクト インスタンス |
StartItem | *Input (任意) | PRIM_LIST.ListItem | 検索を開始するアイテム |
FindReference メソッドは、リストアイテムの RelatedReference プロパティの RelatedReference パラメータで指定されたオブジェクトを検索します。 項目が返されたり見つからない場合、 FindReference 処理は停止します。
この例では、見つかったアイテムにはハイライトするスタイルが与えられています。
Mthroutine Name(Find) Define_Map For(*Input) Class(#Prim_objt) Name(#Object) Pass(*By_Reference) Define_Com Class(#prim_List.ListItem) Name(#FoundItem) Reference(*Dynamic) Begin_Loop #FoundItem <= #List.FindReference( #Object #FoundItem ) Leave If(#FoundItem *Is *Null) #FoundItem.Style <= #MyStyles<Highlight> End_Loop Endroutine
EPC142030 February 2019