Hello,
I tried to add them in params editor but it is always locked !
How can I do it at Designtime and Runtime ?
Thx.
How to add params to IBCQuery
Re: How to add params to IBCQuery
The Parameters tab in IBCQuery Editor is not designed for parameter addition. Using it, you can edit parameters, that are automatically generated on the basis of the query on the SQL tab.
To add parameters in runtime, you can use the following code:
To add parameters in runtime, you can use the following code:
Code: Select all
IBCQuery.ParamCheck := False;
IBCQuery.Params.Clear;
IBCQuery.SQL.Text := 'select * from dept where deptno = :deptno';
IBCQuery.Params.CreateParam(ftInteger, 'deptno', ptInput);
IBCQuery.ParamByName('deptno').AsInteger := 10;
IBCQuery.Open;Re: How to add params to IBCQuery
Thank you ViktorV.
Re: How to add params to IBCQuery
Feel free to contact us if you have any further questions about IBDAC.