Contents Index NextResult method RecordsAffected property

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaDataReader class

Read method


Description 

Reads the next row of the result set and moves the AsaDataReader to that row.

Syntax 

bool Read( )

Return value 

Returns true if there are more rows. Otherwise, it returns false.

Implements 

IDataReader.Read

Usage 

The default position of the AsaDataReader is prior to the first record. Therefore, you must call Read to begin accessing any data.

Example 

The following code fills a list box with the values in a single column of results.

while( reader.Read() )
{
    listResults.Items.Add(
        reader.GetValue( 0 ).ToString() );
}
listResults.EndUpdate();
reader.Close();

Contents Index NextResult method RecordsAffected property