12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

472 Day 12<br />

Q&A<br />

Quiz<br />

Q What property of the TQuery component determ<strong>in</strong>es whether a result set is<br />

updatable?<br />

A The RequestLive property.<br />

Q What property of the TDatabase component is used to set up an applicationbased<br />

alias?<br />

A The DatabaseName property.<br />

Q At a m<strong>in</strong>imum, what components on the Data Access page must be <strong>in</strong> a<br />

<strong>C++</strong>Builder app that needs to <strong>in</strong>clude data-aware user <strong>in</strong>terface controls?<br />

A The TTable and TDatasource components.<br />

1. What’s the purpose of the TSession component?<br />

2. What are the advantages of us<strong>in</strong>g a TDatabase component <strong>in</strong> your applications?<br />

3. What conditions must be true <strong>in</strong> order for a TQuery result set to be updatable?<br />

4. What component is used to copy rows from one TDataset to another?<br />

Exercises<br />

1. Construct a sample form us<strong>in</strong>g a TTable, a TDataSource, and data-aware components<br />

from the Data Controls page of the Component Palette.<br />

2. Modify the form you constructed <strong>in</strong> exercise 1 to <strong>in</strong>clude a TDatabase component.<br />

3. Create a new table by copy<strong>in</strong>g rows from an exist<strong>in</strong>g one us<strong>in</strong>g the TBatchMove<br />

component.<br />

4. Set up a TQuery component to return rows from the BIOLIFE table <strong>in</strong> the DBDEMOS<br />

sample database.<br />

5. Configure this TQuery so that its result set is updatable.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!