Seek Statement

Встановлює позицію для наступного запису або читання файлу, відкритого оператором Open.

Для файлів з довільним доступом Seek встановлює номер запису для наступного доступу.

Для всіх інших файлів Seek встановлює позицію в байтах для наступних операцій.

Синтаксис:

Seek Statement diagram


Seek [#]filePos, {filePos|recordNum}

Parameters:

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

filePos, recordNum: 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.

Коди помилок:

5 Неправильний виклик процедури

52 Неправильне ім'я або номер файлу

Seek function

Будь ласка, підтримайте нас!