Sign in Join
FPDoc Onlineexperiment

TParams.ParamByName function

Member of TParamspublicIn unit DB

Return a parameter by name.

Declaration

pascal
function ParamByName(const Value: string): TParam

Arguments

ValueName to search for.

Function result

TParam instance with Name equal to Value.

Description

ParamByName searches the collection for the TParam instance with property Name equal to Value. It will return the last instance with the given name, and will only return one instance. If no match is found, an exception is raised.

A TParams collection can have 2 TParam instances with the same name: no checking for duplicates is done.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.