Sets the current position in the dataset.
Class EasycomDataSet
Syntax
public void EasycomDataSet.GotoPosition(Integer pos)
Description
EasycomDataSet.GotoPosition reads the record at the given position.
If the dataset belongs to a file the position is a unique integer that is the AS/400 relative record number, which as no relationship with the record rank.
If the dataset is a query, the position is a value relative to the first or to the last record. The value is positive if the position is relative to the first record (for example = 4 if this is the 4th record), and negative if the position is relative to the last record (for example = -4 if this is the 4th record starting from last).
If the dataset is an EasycomFile object, the fetched record may be locked or not depending on the current fetch mode. The fetch mode is sequential read with no lock by default and can be changed using the EasycomFile.SetFetchmode method.
If the position is unreachable an exception will be thrown.
See also