ブック - FindReferenceメソッド
アイテムのRelatedReferenceプロパティに格納されたオブジェクトを検索します
ブック (PRIM_BOOK) のメンバ
パラメータ
名前 | タイプ | データタイプ | 記述 |
|---|---|---|---|
Result | *Result (任意) | 参照を含むアイテムへの参照 | |
RelatedReference | *Input | 検索されるオブジェクトのインスタンス | |
StartItem | *Input (任意) | 検索を開始するアイテム |
詳細
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