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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Method Function<br />

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

FetchAll Reads all pend<strong>in</strong>g rows from a database server connection.<br />

FieldByName Returns a TField us<strong>in</strong>g its database field name.<br />

F<strong>in</strong>dKey Performs an exact search on the TDataset.<br />

GetFieldNames Returns a list of the fields <strong>in</strong> the TDataset.<br />

GetResults Returns Sybase stored procedure output parameters.<br />

Insert Inserts a blank row and allows it to be edited.<br />

InsertRecord Inserts a row us<strong>in</strong>g supplied column values.<br />

Locate F<strong>in</strong>ds a record <strong>in</strong> the result set.<br />

Lookup F<strong>in</strong>ds a record <strong>in</strong> the result set and returns values from it.<br />

MoveBy Moves the TDataset cursor by a given number of rows.<br />

Open Opens a stored procedure that returns a result set.<br />

ParamByName Returns a query parameter us<strong>in</strong>g the parameter’s name.<br />

Post Saves pend<strong>in</strong>g modifications to the current row.<br />

Table 12.16. TStoredProc key events.<br />

Event Catalyst<br />

AfterCancel Occurs follow<strong>in</strong>g a Cancel.<br />

AfterClose Occurs follow<strong>in</strong>g the close of the TDataset.<br />

AfterDelete Occurs follow<strong>in</strong>g a Delete.<br />

AfterEdit Occurs follow<strong>in</strong>g an Edit.<br />

AfterInsert Occurs follow<strong>in</strong>g an Insert or Append.<br />

AfterOpen Occurs after a TDataset is opened.<br />

AfterPost Occurs follow<strong>in</strong>g a Post.<br />

BeforeCancel Occurs prior to a Cancel.<br />

BeforeClose Occurs before the close of the TDataset.<br />

BeforeDelete Occurs prior to a Delete.<br />

BeforeEdit Occurs prior to an Edit.<br />

BeforeInsert Occurs prior to an Insert or Append.<br />

BeforeOpen Occurs before a TDataset is opened.<br />

BeforePost Occurs prior to a Post.<br />

459<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!