ODAC

TOraSQL.ParamByName Method

Searches for and returns a parameter with the specified name.

Class

TOraSQL

Syntax

function ParamByName(const Value: string): TOraParam;

Parameters
Value
Holds the parameter name.
Return Value
the parameter, if a match was found. Otherwise an exception is raised.

Remarks

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

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

Example

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

See Also

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