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