CDatabaseRecordset::UpdateRecord

[This is preliminary documentation and subject to change.]

The UpdateRecord method updates the current record in the recordset object from the Guide database. Only the current record of an open recordset can be updated.

BOOL UpdateRecord(
  void* cRecordsetObject  
);
 

Parameters

cRecordsetObject
A pointer to a recordset object.

Return Values

A BOOL indicating the success or failure of the method. If this value is TRUE, the method succeeded. If it is FALSE, an error occurred.

Remarks

This method is automatically called by the InsertRecord method when it adds a new empty record to the recordset. You can also use this method to replace the current record with a passed-in CTableName.

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in dbsets.h.
  Import Library: Use dbsets.lib or dbsetsSt.lib.
  Unicode: Yes.

Example

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

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