Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to Clone A TTable to another TTable Posted by marcobranco on 19 Jul 2003 at 2:22 AM
How could i clonate a ttable component, getting on the clone all the information that is in table1?

Thanks in advance
Report
Re: How to Clone A TTable to another TTable Posted by Perran on 19 Jul 2003 at 4:33 AM
: How could i clonate a ttable component, getting on the clone all the information that is in table1?
:
: Thanks in advance
:
At designtime borrow the structure from the first table in the database desktop. You can move the records with database explorer and SQL. If you're talking about runtime, use the create method of the table. Look at the table.create example in the help file. I'd post it, but I'm writing this from Linux , and don't have the table component help for Kylix. There is a batchmove method that you can use to move the records. In reference to both of your questions, if you are wanting to scale this app, I'd recommend using query components and SQL.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.