Explanation
FIELD Statement
Allocates space for variables in a random-access file buffer.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
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. |
OPEN "FILEDAT.DAT" FOR RANDOM AS #1 LEN = 80
FIELD #1, 30 AS name$, 50 AS address$
See also: | GET, PUT | LSET, RSET | TYPE |