Seek Statement

Define la posición de la siguiente escritura o lectura de un archivo abierto con la instrucción Open.

Para archivos de acceso aleatorio, la instrucción Seek define el número del siguiente registro al que se accederá.

Para el resto de archivos, la instrucción Seek define la posición de byte en la que ocurrirá la siguiente operación.

Sintaxis:

Seek Statement diagram


Seek [#]filePos, {filePos|recordNum}

Parámetros:

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.

Códigos de error:

5 Llamada a procedimiento no válida

52 Nombre de archivo o número incorrectos

Función Seek

¡Necesitamos su ayuda!