Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
FIELD Statement
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Allocates space for variables in a random-access file buffer.
FIELD [#]filenumber%, fieldwidth% AS stringvariable$
[,fieldwidth% AS stringvariable$] ...
■ filenumber% The number of an open file.
■ fieldwidth% The number of characters in the field.
■ stringvariable$ A variable that identifies the field and contains
field data.
■ Record variables usually provide a better way to handle record data.
Example:
OPEN "FILEDAT.DAT" FOR RANDOM AS #1 LEN = 80
FIELD #1, 30 AS name$, 50 AS address$
See Also ◄GET, PUT► ◄LSET, RSET► ◄TYPE► ◄Differences from BASICA►