[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
READ                     Assign DATA Items to Variables

 READ variable [,variable]...

    Assigns values in DATA items to specified variables.

    variable    A numeric or string variable, or an array element.

   ----------------------------------------------------------------------

      Notes:    A single READ statement can assign multiple DATA items to
                multiple variables; or several READ statements can assign
                the same DATA item to several variables.

                Unless a RESTORE statement is executed, QuickBASIC moves
                to the next DATA item with each READ assignment. If
                QuickBASIC runs out of DATA items to READ, an Out of Data
                error occurs.

                If the variable and the data item do not match in type, a
                Syntax Error occurs.

See Also: DATA RESTORE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson