Page 1 of 1

How to add a parameter to a TIBCQuery programmatically

Posted: Fri 28 Aug 2009 08:13
by rfwoolf
If I create a TIBCQuery and want to add a parameter.. can you give me some source code?

If I say
IBCQuery1.Params.Add('
my IDE says it wants a TCollectionItem

Posted: Fri 28 Aug 2009 11:51
by Plash
var
Param: TIBCParam;
begin
Param := TIBCParam(IBCQuery1.Params.Add);
Param.Name := 'Param1';
Param.DataType := ftString;
end;

Posted: Sat 29 Aug 2009 11:13
by rfwoolf
Okay thanks. Fortunately I managed to figure this out myself after a while.