NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Seek Function

Returns a Long specifying the current read/write position within a file opened using the Open statement.

Seek(filenumber)

The required filenumber argument is an Integer containing a valid file number.

Remarks

Seek returns a value between 1 and 2,147,483,647 (equivalent to 2^31 – 1), inclusive.

The following describes the return values for each file access mode.

Mode Return Value
Random Number of the next record read or written
Binary,
Output,
Append,
Input
Byte position at which the next operation takes place. The first byte in a file is at position 1, the second byte is at position 2, and so on.

See Also

Example

Get Function | Loc Function | Open Statement | Put Statement | Seek Statement