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.

<strong>C++</strong>Builder Database Architecture<br />

Property Description<br />

State Returns the state of the TDataset (for example, dsEdit or<br />

dsBrowse).<br />

TableName Specifies the physical name of the associated table.<br />

TableType Specifies the type of (local) table.<br />

UpdateMode Determ<strong>in</strong>es the type of SQL used to perform data changes.<br />

UpdateObject Specifies the UpdateSQL component to use <strong>in</strong> conjunction with<br />

cached updates.<br />

Table 12.9. TTable key methods.<br />

Method Function<br />

AddIndex Creates a new <strong>in</strong>dex.<br />

Append Appends a blank row to the TDataset and puts it <strong>in</strong> edit mode.<br />

AppendRecord Appends a row to the TDataset us<strong>in</strong>g specified values.<br />

ApplyRange Activates the range established by the Set/EditRange methods.<br />

ApplyUpdates Saves cached updates to the database.<br />

BatchMove Copies a batch of rows between TDatasets.<br />

Cancel Discards pend<strong>in</strong>g modifications to the current row.<br />

CancelRange Cancels the effects of the Set/EditRange methods.<br />

CancelUpdates Discards pend<strong>in</strong>g cached updates.<br />

ClearFields Sets the current row’s fields to their default values.<br />

Close Closes the TDataset.<br />

CreateTable Creates a new table.<br />

Delete Deletes the current record.<br />

DeleteIndex Deletes a secondary <strong>in</strong>dex.<br />

DeleteTable Deletes the associated physical database table.<br />

Edit Puts the TDataset <strong>in</strong> edit mode.<br />

EditKey Allows search key values to be modified.<br />

EditRangeEnd Allows edit<strong>in</strong>g of the upper key limit of a range.<br />

EditRangeStart Allows edit<strong>in</strong>g of the lower key limit of a range.<br />

EmptyTable Deletes all the rows <strong>in</strong> the TDataset.<br />

EnableControls Enables associated data-aware controls.<br />

443<br />

cont<strong>in</strong>ues<br />

12

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

Saved successfully!

Ooh no, something went wrong!