help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TStream.Seek

Set stream position.

Declaration

Source position: objects.pp line 291

procedure TStream.Seek(

  Pos: LongInt

); virtual;

Description

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

For an example, see TDosStream.Seek.

Errors

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

See also

TStream.GetPos

  

Return current position in the stream

TStream.GetSize

  

Return the size of the stream.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505