print "CITY", "STATE", "ZIP" read c$, s$, z data "CLEVELAND,", OHIO, 44114 print c$, s$, zproduces
CITY STATE ZIP CLEVELAND, OHIO 44114This program reads string and numeric data from the data statement in line 30. Note that quotation marks around OHIO are not needed, because it doesn’t have commas, semicolons, or significant leading or trailing blanks. However, the quotation marks around "CLEVELAND," are needed because of the comma.
If there are more variables in the Var list than remaining elements in the data statements, an "Out of data" error will occur when the attempt is made to read beyond the end of the list of elements in the data statement.
If the value of some item in the data statement is too large to store in the corresponding variable in the Var list, an "Overflow" error occurs.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber