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

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Guest

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

Post by Guest » Wed 04 May 2005 09:38

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

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Thu 05 May 2005 12:19

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).

Guest

Post by Guest » Fri 06 May 2005 02:14

I need to copy the fields definitions from one query to other query.

Thx~
Akira

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Fri 06 May 2005 06:31

ODAC has no such functionality in TOraQuery component.

akiraiu
Posts: 22
Joined: Tue 16 Nov 2004 02:31

Post by akiraiu » Mon 09 May 2005 01:04

Thanks~~~~

Post Reply