Storages & Files Seek
Seek method

Seek a position in a stream. Unlike the Seek method of the SFStream this method measures the stream in buffSize lengths. When SFRecord's binding capabilities are used it is internally called (no need to be aware of this method if you use SFRecord based access to streams) whenever navigation to certain record is to be made.

Syntax:

variable = object.Seek(stream, rec, origin)

Parameters:

stream - A stream to seek in - SFStream or an object that supports IStream interface.

rec - Record to seek. One record is buffSize bytes. How the calculation of the actual record where the stream will be positioned depends on the from value.

origin - a constant, specifies how to calculate the physical position over the supplied rec parameter. The constants are:

Value Constant Description
0 cStreamBegin Position must be positive and specifies the stream position (in records) calculated from the beginning of the stream. 
1 cStreamCurrent Position can be positive or negative. The stream position is moved forward (positive) or backwards (negative) from the current stream position. 
2 cStreamEnd Calculated from the end of stream. Positive values will enlarge the stream size. 

Remarks:

SFRecord calls this methos internally of navigation is made through its methods.

Applies to: SFFilter object

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later

 

newObjects Copyright 2001-2006 newObjects [ ]