Seek Statement

Grąžina poziciją faile, kuris buvo atvertas naudojant atvėrimo sakinį, tolesniam rašymui ar skaitymui .

Atsitiktinės prieigos failams funkcija „Seek“ grąžina kito siekiamo įrašo numerį.

Visiems kitiems failams funkcija „Seek“ grąžina baito padėtį, kurioje turi būti kita operacija.

See also: Open, Seek.

Syntax:


Seek[#FileNumber], Position (As Long)

Parameters:

FileNumber: The data channel number used in the Open statement.

Position: Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type, the position indicates the number of the record (files in the Random mode) or the byte position (files in the Binary, Output, Append or Input mode). The first byte in a file is position 1, the second byte is position 2, and so on.

Klaidos kodai:

5 Neteisingas procedūros iškvietimas

52 neteisingas failo pavadinimas arba failo numeris