GetChar Method

Gets the value of the specified column as a character.

Syntax

char GetChar( int ordinal )

Parameters

ordinal – an ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return Value

Gets the value of the column.

Implements

IDataRecord.GetChar

Usage

  • No conversions are performed. Use this method to retrieve data from columns of type tinyint, char(1), and varchar(1).

  • Call AseDataReader.IsDBNull to check for null values before calling this method.

Related reference
IsDBNull Method