ODAC

TOraDataSet.ParamByName Method

Sets or uses parameter information for a specific parameter based on its name.

Class

TOraDataSet

Syntax

function ParamByName(const Value: string): TOraParam;

Parameters
Value
holds the name of the parameter to retrieve information for.
Return Value
a object.

Remarks

Call the ParamByName method to set or use parameter information for a specific parameter based on its name. Name is the name of the parameter for which to retrieve information. ParamByName is used to set a parameter's value at runtime and returns a TOraParam object.

Example

The following statement retrieves the current value of a parameter called "Contact" into an edit box:

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

See Also

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