Language Reference Guide : System Classes : DataStream Class : NextRow Method
 
Share this page          
NextRow Method
The NextRow method retrieves the next row of data from the database into internal buffers.
This method has the following syntax:
integer = DataStream.NextRow()
This method handles break processing before data is loaded into target variables by the Load method.
If the NextRow method is not successful, it returns -1. If it is successful, it returns the break level or zero for no breaks applicable. If no breaks have been added, only zero or -1 are returned. To determine whether lack of success indicates an error or no more rows in the query, check the value of the ErrorNo attribute.