GLBasic User Manual

Main sections

STARTDATA

STARTDATA label:



The command "STARTDATA label:" defines the beginning of a data block. A data block can consist of numbers or strings of any count.

Example:
RESTORE name
READ a // returns 1
READ b // returns 2
READ a$, b$, c, d // returns "x", "y", 3, 4
PRINT a+", "+b+", "+a$+", "+b$+", "+c+", "+d, 0,0

SHOWSCREEN
MOUSEWAIT
READ xxx // Error - out of data

STARTDATA name:
    DATA 1,2
    DATA "x", "y", 3,4
ENDDATA


Output:
1, 2, x, y, 3, 4

See also...