Tree Design Interface - OnFind Method

Executed when the Find method is used

Member of Tree Design Interface (PRIM_TREE.ITreeDesign)

Parameters

NameTypeData TypeDescription
Result*ResultBooleanReturn true if the item matches the specified key
TreeItem*InputPRIM_TREE.TreeItemReference to the item performing the find
Key*InputPRIM_VARValue being searched for

Details

The OnFind method is executed for each design instance when the FindItem method is used in the containing Tree.

Example

Redefine the method in the design reusable part.
 
In this simple example, the item returns true if the Key is found in the employee name
Mthroutine Name(OnFind) Options(*redefine)
 
   #Result := #Surname.Contains( #Key ) *Or #Givename.Contains( #Key )
 
Endroutine

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2