Skip to content

TParams.CreateParam

Create and add a new parameter to the collection.

Declaration

Source position: db.pas line 1545

public 
function TParams.CreateParam(FldType: TFieldType; 
                            const ParamName: string; 
                            ParamType: TParamType) : TParam;

Description

CreateParam creates a new TParam instance with datatype equal to fldType, Name equal to ParamName and sets its ParamType property to ParamType. The parameter is then added to the collection.

See also

Name Description
TParam Parameter description class.
TParam.Name Name of the parameter.
TParam.Datatype Data type of the parameter.
TParam.Paramtype Type of parameter.