Denso Power Net Terminal BHT-7500 Dokumentacja Strona 239

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 560
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 238
Chapter 14. Statement Reference
230
Syntax:
GET [#]filenumber[,recordnumber]
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
recordnumber
A numeric expression which returns a value from 1 to 32767.
Description:
GET reads the record specified by recordnumber from the data file specified by
filenumber and assigns the data to the field variable(s) specified by the FIELD
statement.
filenumber is the file number of a data file opened by the OPEN statement.
If a data file having no record is specified, a run-time error will occur.
The first record in a data file is counted as 1.
If no
recordnumber is specified, the GET statement reads a record whose
number is one greater than that of the record read by the preceding
GET state-
ment.
If no
recordnumber is specified in the first GET statement after opening of a
file, the first record (numbered 1) in the file will be read.
recordnumber should be equal to or less than the number of written records.
If it is greater, a run-time error will occur.
If a GET statement without recordnumber is executed after occurrence of a
run-time error caused by an incorrect record number in the preceding
GET state-
ment, then the new
GET statement reads the record whose record number is one
greater than that of the latest record correctly read.
If a GET statement without recordnumber is executed after execution of the
preceding
GET statement specifying the last record (the number of the written
records), then a run-time error will occur.
File I/O statement
GET
Reads a record from a data file.
Przeglądanie stron 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 559 560

Komentarze do niniejszej Instrukcji

Brak uwag