[Overview][Resource strings][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'tiObject' (#tiopf)

TtiObjectList.FindByProps

Find the first object with a matching property and value pair

Declaration

Source position: tiObject.pas line 650

public function TtiObjectList.FindByProps(

  const AProps: array of string;

  const AVals: array of variant;

  ACaseSensitive: Boolean = True

):TtiObject; virtual;

Description

Find the first object with a matching property and value pair. This function will find the first object whose properties passed in AProps match the values specified in AVals.

If no match is found, nil is returned.

Remark: This function uses RTTI information to find properties, so the search will only traverse over Published properties, not Public properties.

Documentation generated on: 2017-08-16