CDatabaseRecordset::GetLongField

[This is preliminary documentation and subject to change.]

The GetLongField method returns the value of the specified long field from a record in the recordset object.

long GetLongField(
  LPCTSTR pstrIndex  
);
 

Parameters

pstrIndex
Specifies the name of the field to retrieve.

Return Values

The value of the field specified by pstrIndex. If you call this method to retrieve a field that has a data type other than long, for example a text field, this method returns 0.

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.