Argox PA-20 Basic Programming Manual Manual de usuario Pagina 81

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 143
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 80
PT-Basic Programming Manual Ver. 1.00 80/143
EOF
Purpose
To check if file pointer of a file reaches end of file.
Syntax
E%=EOF # FILEID%
Example
WHILE (EOF#FILEID% <> -1)
Str$=GET$ # FILEID%
PRINT Str$
WEND
Description
E% is an integer to be assigned to the result.
E%
Meaning
0 (False)
Not end-of-file.
-1 (True)
End-of-file
FILEID% is an integer variable indicating the file handle.
You can use the GET_FILE_ERROR command to get the
file error code. Possible error codes and their interpretation
are listed below:
GET_FILE_ERROR
Meaning
2
File specified does not exist.
8
File not opened
PTR
Purpose
To get or move the file pointer position of a file.
Syntax
TELLPTR% = PTR # FILEID%
PTR # FILEID% = NPTR%
Example
...
TELLPTR%=PTR # FILEID%
PTR # FILEID% = 40
Description
TELLPTR % is an integer variable to be assigned to the
result.
TELLPTR% = PTR # FILEID%, to get the file pointer
position of a file.
NPTR % is an integer variable indicating the offset bytes
address been specified.
FILEID% is an integer variable indicating the file handle.
You can use the GET_FILE_ERROR command to get the
file error code. Possible error codes and their interpretation
are listed below:
GET_FILE_ERROR
Meaning
Vista de pagina 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 142 143

Comentarios a estos manuales

Sin comentarios