is it possible to clone TIBCQuery at runtime ?

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
undefined
Posts: 2
Joined: Mon 18 May 2009 19:49

is it possible to clone TIBCQuery at runtime ?

Post by undefined » Mon 18 May 2009 20:01

Hello,

I want to store my protoypic query objects at Tdatamodule and then want to able to create instances of them for each corresponding form. Apparently FibPlus dataset has some functions for cloning purpose.

Can IBDAC objects handle situation like that without ugly hacks?

Thanks in advance.

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

Post by Plash » Tue 19 May 2009 07:38

You can use the Assing method of TIBCQuery. Create new TIBCQuery object, then call the Assign method. It will copy most of properties from another TIBCQuery object.

undefined
Posts: 2
Joined: Mon 18 May 2009 19:49

Post by undefined » Tue 19 May 2009 22:31

And It will say "Cannot perfom this operation on a closed dataset" :(

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

Post by Plash » Wed 20 May 2009 07:08

We could not reproduce the problem. Please specify which properties of TIBCQuery we need to set to reproduce the problem.

Post Reply