Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>read assign data items to variables</b> http://www.X-Hacker.org [<<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.

                The RESTORE statement makes it possible for your program
                to reread DATA items.

                Unless a RESTORE statement is executed, Turbo Basic moves
                to the next DATA item with each READ assignment. If Turbo
                Basic runs out of DATA items to READ, runtime error 4 (Out
                of Data) occurs.

                If you try to read a string constant into a numeric
                variable, runtime error 2 (Syntax error) occurs.

See Also: DATA RESTORE

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson