Platform SDK: Broadcast Architecture

CDatabaseRecordset::UpdateRecord

The UpdateRecord method updates the current record in a recordset object from the Guide database. C syntax is shown.

BOOL UpdateRecord(
  void *cRecordsetObject
);

Parameters

cRecordsetObject
Pointer to a recordset object.

Return Values

Returns TRUE if the current record was successfully updated, and FALSE otherwise.

Remarks

Only the current record of an open recordset can be updated by using UpdateRecord.

The InsertRecord method automatically calls UpdateRecord when InsertRecord adds a new empty record to a recordset. Your application can also use UpdateRecord to replace the current record in the database with the data from the recordset object pointed to by the CRecordsetObject parameter.

Requirements

  Windows NT/2000: Unsupported.
  Windows 95/98: Requires Windows 98.
  Header: Declared in dbsets.h.
  Import Library: Use dbsets.lib or dbsetsst.lib.

See Also

CDatabaseRecordset::InsertRecord

Examples

The following example updates the current record of the CThemeRecordset recordset.

CTheme *pct = new (Ctheme);
CThemeRecordset ctr;
Ctr->UpdateRecord((void *) pct));