219
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.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...