Platform SDK: Broadcast Architecture |
The UpdateRecord method updates the current record in a recordset object from the Guide database. C syntax is shown.
BOOL UpdateRecord( void *cRecordsetObject );
Returns TRUE if the current record was successfully updated, and FALSE otherwise.
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.
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in dbsets.h.
Import Library: Use dbsets.lib or dbsetsst.lib.
CDatabaseRecordset::InsertRecord
The following example updates the current record of the CThemeRecordset recordset.
CTheme *pct = new (Ctheme); CThemeRecordset ctr; Ctr->UpdateRecord((void *) pct));