Next Method

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

A project, project suite or keyword test variable of the DB Table type provides access to data stored in database tables or queries, Excel workbooks or CSV files. The variable also supports iterating through rows of these data storages. The Next method is used to forward the variable’s iterator to the next data row.

Declaration

DBTableVariableObj.Next()

DBTableVariableObj An expression, variable or parameter that specifies a reference to a DBTableVariable object
Result None

Applies To

The method is applied to the following object:

Result Value

None.

Remarks

If you call Next when the iterator is after the last row, an error occurs. To check whether further iteration is possible, use the IsEOF method.

To set the iterator to the initial position, call Reset.

To access column values of the current row, use the Value property.

Example

For an example of the Next method's use, see Variables of the DB Table Type.

See Also

Variables of the DB Table Type
IsEOF Method
Reset Method
Value Property

Highlight search results