ADODataSet.First


public function First

Prototype:

public function First();

Description:

Moves to the first row, if possible.

Return value:

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

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();