TCustomSQLQuery.ParamByName¶
Return parameter by name.
Declaration¶
Source position: sqldb.pp line 626
public
function TCustomSQLQuery.ParamByName(const AParamName: string) : TParam;
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¶
| Name | Description |
|---|---|
| Params.ParamByName | Return a parameter by name. |
| TSQLQuery.Params | Parameters detected in the SQL statement. |