How to Clone A TTable to another TTable - Programmers Heaven

Howdy, Stranger!

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

Categories

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.