Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to Clone A TTable to another TTable

How could i clonate a ttable component, getting on the clone all the information that is in table1?

Thanks in advance

Comments

  • PerranPerran Posts: 241Member
    : 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.
Sign In or Register to comment.