Sign in Join
FPDoc Onlineexperiment

TStream.Seek procedure

Member of TStreamIn unit Objects

Set stream position.

Declaration

pascal
procedure Seek(Pos: LongInt); virtual

Description

Seek sets the position to Pos. This position is counted from the beginning, and is zero based. (i.e. seek(0) sets the position pointer on the first byte of the stream)

For an example, see Seek.

Errors

If Pos is larger than the stream size, Status is set to StSeekError.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.