TMedQuery.ParamByName TMedQuery

function ParamByName(const Val: string): TParam;

Description

Use ParamByName to access the SQL parameter by its name. Specify the name of the parameter as Val string.

Example:

writeln( MyQuery.ParamByName('ProdID').AsString );