#### DBField

##### Next(DBfield a)

This function returns the next value of the current DBField.

Parameter

a - A DBField value.

Return value

The return value is a DBField value.

Example

Suppose you build a report about customer orders. If you use this function on "Ship Date" and insert it into the Detail Section, then when you run the report, you will see after each record, the next records will be displayed according to the following statement.

`Next(@"Ship Date")`

##### Next(DBfield a, BigInt b)

This function returns the next Nth record decided by the argument b.

Parameters

- a - A DBField value.
- b - A BigInt value.

Return value

The return value is a DBField value.

Example

Suppose you build a report about customer orders. If you use this function on "Ship Date" and set the argument b as 1, then when you run the report, you will see after each record, the next first record will be displayed according to the following statement.

`Next(@"Ship Date", 1)`

Note: Due to some implementation limitation, the argument b cannot be larger and equal to 2, so if you have the requirement to return the next Nth record (N >= 2), use the Prev(DBfield a, BigInt b) function instead to get it in a walk-around way.

##### Prev(DBfield a)

This function returns the previous value of the current DBField.

Parameter

a - A DBField value.

Return value

The return value is a DBField value.

Example

Suppose you build a report about customer orders. If you use this function on "Ship Date" and insert it into the Detail Section, after the report has been run, you will see the previous records displayed after each record, according to the following statement.

`Prev(@"Ship Date")`

##### Prev(DBfield a, BigInt b)

This function returns the previous Nth record decided by the argument b.

Parameters

- a - A DBField value.
- b - A BigInt value.

Note: b must be minus, otherwise, the return value will be the next Nth record.

Return value

The return value is a DBField value.

Example

Suppose you build a report about customer orders. If you use this function on "Ship Date" and set the argument b as -4, then when you run the report, you will see before each record, the previous 4th record displayed according to the following statement.

`Prev(@"Ship Date", -4)`