Seek Function

   
Seek Function

Class

Microsoft.VisualBasic.FileSystem

Syntax

 Seek(   filenumber   ) 
filenumber (required; Integer)

Any valid file number

Return Value

A Long indicating the current read/write position

Description

Returns the current position of the read/write marker in the open file filenumber

Rules at a Glance

  • The Seek function returns a whole number in the range 1 to 2,147,483,647.

  • If filenumber was opened in Random mode, the number returned by the Seek function refers to the next record to be written or read.

  • In all other file open modes (Append, Binary, Input, and Output), the number returned by the Seek function is the byte position at which the next read or write operation will occur.

See Also

Seek Procedure

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net