QBasic 1.1: FIELD Statement

Syntax

FIELD [#]filenumber%, fieldwidth% AS stringvariable$ [,fieldwidth% AS stringvariable$] ...

Description / Parameter(s)

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$