Platform SDK: Broadcast Architecture

CDatabaseRecordset::GetLongField

The GetLongField method returns the value of the specified LONG field from a record in the recordset object. C syntax is shown.

LONG GetLongField(
  LPCTSTR pstrIndex  
);

Parameters

pstrIndex
Name of the field to retrieve.

Return Values

Returns the value of the field specified by the pstrIndex parameter if successful, and otherwise returns zero. If you call this method to retrieve a field that has a data type other than LONG, for example a text field, GetLongField returns zero.

Requirements

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