Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Tile Design interface - OnFind Method

Panel
bgColor#2c3c4c

Executed when the Find method is used

Member of Tile Design interface (PRIM_TILE.ITileDesign)

Parameters

Name

Type

Data Type

Description

Result

*Result

Boolean

Return true if the item matches the specified key

TileItem

*Input

PRIM_TILE.TileItem

Reference to the item performing the find

Key

*Input

PRIM_VAR

Value being searched for

Details

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

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