IBCScript parameters
Posted: Fri 13 Nov 2009 23:09
Hi All,
Is it possible to use a parameter multiple times within the same script?
Say for example:
The answer seems to be no, so what would be the best way to proceed in his case?
Thanks[/code]
Is it possible to use a parameter multiple times within the same script?
Say for example:
Code: Select all
IBCScript .SQL. Add('DELETE FROM TABLE_1 WHERE (ID=:id_param);');
IBCScript .SQL. Add('INSERT INTO TABLE_1 (ID, NAME) VALUES (:id_param, :name_param);');
IBCScript. Params. CreateParam(ftInteger, 'id_param', ptInput);
IBCScript. Params. ParamByName('id_param'). AsInteger := 2;
Thanks[/code]