Sign in Join
FPDoc Onlineexperiment

TCustomSQLQuery.ParamByName function

Member of TCustomSQLQuerypublicIn unit SQLDB

Return parameter by name.

Declaration

pascal
function ParamByName(const AParamName: string): TParam

Arguments

AParamName

Name of parameter to look for. Case insensitive.

Function result

Resulting TParam instance.

Description

ParamByName is a shortcut for Params.ParamByName. The 2 following pieces of code are completely equivalent:

Qry.ParamByName('id').AsInteger:=123;

and

Qry.Params.ParamByName('id').AsInteger:=123;

See also

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