How to add a parameter to a TIBCQuery programmatically

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rfwoolf
Posts: 35
Joined: Thu 27 Aug 2009 19:39

How to add a parameter to a TIBCQuery programmatically

Post by rfwoolf » Fri 28 Aug 2009 08:13

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

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 28 Aug 2009 11:51

var
Param: TIBCParam;
begin
Param := TIBCParam(IBCQuery1.Params.Add);
Param.Name := 'Param1';
Param.DataType := ftString;
end;

rfwoolf
Posts: 35
Joined: Thu 27 Aug 2009 19:39

Post by rfwoolf » Sat 29 Aug 2009 11:13

Okay thanks. Fortunately I managed to figure this out myself after a while.

Post Reply