CDatabaseRecordset::GetField

[This is preliminary documentation and subject to change.]

The GetField method returns the value of the specified field from a record in the recordset object. This method is overloaded and you can use either a LPCTSTR or a long to index the index.

Syntax1

COleVariant GetField(
  LPCTSTR pstrIndex  
);
 

Parameters1

pstrIndex
Specifies the name of the field to retrieve.

Syntax2

COleVariant GetField(
  long lIndex  
);
 

Parameters2

lIndex
The index number of the field to retrieve. For example, if you passed in 3, this method gets the value of the third field.

Return Values

The value of the field specified by the index parameter.

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.