CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DataBase Question



There are two basic ways with BCB:

1) Instantiate a TTable, call the Insert (Edit can also be used if you have not
established a cursor) method, set table attribute values, call post.  Repeat for
each record.

2) Instantiate a TQuery, use sprintf to create a SQL Insert statement for one row,
call the ExecSQL method on the TQuery.  Repeat the Insert statement creation and
ExecSQL for each row.

tc

OnAir3@aol.com wrote:

> Question....
>
> How do I Create Records in a Table at run-time and fill the records with data?
>
> Wantabe programmer
> RS


begin:          vcard
fn:             N. Thomas Creighton
n:              Creighton;N. Thomas
org:            Lone Peak Technology Group
email;internet: tomc@lptg.com
title:          Owner
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard


W Komornicki's Home Page | Main Index | Thread Index