Page 1 of 1

is it possible to clone TIBCQuery at runtime ?

Posted: Mon 18 May 2009 20:01
by undefined
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.

Posted: Tue 19 May 2009 07:38
by Plash
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.

Posted: Tue 19 May 2009 22:31
by undefined
And It will say "Cannot perfom this operation on a closed dataset" :(

Posted: Wed 20 May 2009 07:08
by Plash
We could not reproduce the problem. Please specify which properties of TIBCQuery we need to set to reproduce the problem.