ParamsCheck: Boolean;
The ParamsCheck property determines whether parameters are considered at query execution.
If the property is set to True, values of parameters are considered at query execution.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Query: IQuery;
Params: IMetabaseObjectParams;
ParamsVal: IMetabaseObjectParamValues;
Dat: IDatasetInstance;
Begin
MB:=MetabaseClass.Active;
MObj:=Mb.ItemById("Query_1").Edit;
Query:=MObj As IQuery;
Query.ParamsCheck:=False;
MObj.Save;
Params:=MObj.Params;
ParamsVal:=Params.CreateEmptyValues;
ParamsVal.Item(0).Value:="10";
Dat:=MObj.Open(ParamsVal) As IDatasetInstance;
End Sub Main;
After executing the example, for query with the Query_1 identifier ignoring of parameters of query is set. The query is executed without set parameters.
See also: