Home > Language Reference > Classes > Stream
Seek Method
Moves the stream pointer.
Syntax
Public Sub Seek(ByVal lNewPos As Long)
| Parameter | Description |
| lNewPos | New position of the stream pointer. |
Remarks
The Seek method sets the stream pointer position. It can only be used on StreamMemory, StreamRecord, StreamFile, StreamFileDB, StreamComposite and StreamNull objects. On all other types of stream, it causes a runtime error.
Calling this method is the same as setting the lNewPos value of the Position property. Refer to the documentation of this property for further information.
You can move the pointer directly to the beginning or end of the stream using the SeekToBegin or SeekToEnd methods.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |