UniDAC

TUniSQL.ParamByName Method

Searches for a parameter with the specified name.

Class

TUniSQL

Syntax

function ParamByName(const Value: string): TUniParam;

Parameters
Value
Holds the name of the parameter to search.
Return Value
a parameter, if a match is found. Nil otherwise.

Remarks

Call the ParamByName method to find a parameter with the name passed as Name.

If a match is found, ParamByName returns the parameter. Otherwise, it raises an exception.

Example

UniSQL1.Execute;
Edit1.Text := UniSQL1.ParamByName('Contact').AsString; 

See Also

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