PgDAC

TCustomDASQL.ParamByName Method

Finds a parameter with the specified name.

Class

TCustomDASQL

Syntax

function ParamByName(const Value: string): TDAParam;

Parameters
Value
Holds the name of the parameter to search for.
Return Value
a TDAParam object, if a match was found. Otherwise, an exception is raised.

Remarks

Use the ParamByName method to find a parameter with the specified name. If no parameter with the specified name found, an exception is raised.

Example

PgSQL.Execute;
Edit1.Text := PgSQL.ParamsByName('Contact').AsString; 

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback