Contido

# Instrución Seek

Sets the position for the next writing or reading in a file that was opened with the Open statement.

Para ficheiros de acceso aleatorio, a función Seek devolve o número do seguinte rexistro que se vai ler.

For all other files, the Seek statement sets the byte position at which the next operation is to occur.

### Sintaxe:

    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 erro

5 Chamada de procedemento incorrecta

52 Erro no nome ou número do ficheiro

Temas relacionados

Instrución Open

Función Seek

Precisamos da súa axuda!