MosOdbcReader

MosOdbcReader is an object used for navigation through the resulting data set returned by a query to the database.

Methods

Name

Description

close()

Closes the connection with the database and frees all allocated resources. The function must necessarily be called after each call of MosOdbc.openReader.

read()

Moves the object to the next record of the data set. The function returns True if the data set has a next record, otherwise returns False.

getValueByIndex(index)

Returns the value of the column specified by the numeric argument index. Index specifies the column sequence number.

getValueByName(columnName)

Returns the value of the column specified by the string argument columnName. ColumnName specifies the column name from the returned query.

Last updated