Concept Framework 1.0 documentation Contents | Index

ADODataSet.Next

Name Type Access Version Deprecated
Next function public version 1.0 no

Prototype:
public function Next()


Description:
Moves to the next row, if possible.

Example:
		var Connection=new ADOConnection();

var DataSet=new ADODataSet(Connection);

// Check the Open member of the ADOConnection for connection strings
Connection.Open(CONNECTION_STRING);

DataSet.CommandText="select * from sysobjects";
DataSet.ExecuteQuery();

// print all the ids in the sysobjects table.
if (DataSet.First()) {
do {
echo DataSet.FieldValues["id"].ToString()+"\n";
} while (DataSet.Next());
}
DataSet.CloseRead();

Returns:
Returns 0 no records are available (or last record is already selected), non-zero if it succeeded.

Documented by Eduard Suica, generation time: Thu Oct 15 20:01:58 2009 GMT(c)2009 RadGs Software