Page 1 of 1

how to copy the fields definitions from one TOraQuery to other TOraQuery?

Posted: Wed 04 May 2005 09:38
by Guest
I have TOraQuery q1 that has the fields a, b, c, and I have other TOraQuery q2 that is dynamically create in one procedure, i want to copy the q1's fields to q2.

how to do that or can I do that?

Thanks.

^_^
Akira

Posted: Thu 05 May 2005 12:19
by Alex
It's hard to understand the purpose of such copying, are you need to copy only field definitions or you need to copy contents of DataSet object too, if the last then the simplest way is to set second Query SQL equal to the first Query and execute it, in other case this action is useless (or I miss something).

Posted: Fri 06 May 2005 02:14
by Guest
I need to copy the fields definitions from one query to other query.

Thx~
Akira

Posted: Fri 06 May 2005 06:31
by Alex
ODAC has no such functionality in TOraQuery component.

Posted: Mon 09 May 2005 01:04
by akiraiu
Thanks~~~~