ブック - 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&ltHighlight>

End_Loop

Endroutine


参照

すべてのコンポーネント クラス
テクニカルリファレンス