WRITE statement

Purpose:

WRITE writes quoted, comma separated strings to the screen.

Syntax:

WRITE CommaSeparatedStrings AS STRING

Parameters:

  • Data type: STRING
    CommaSeparatedStrings list of comma separated literal or variable strings. Quotation marks will encase the variables and separate them with commas as they are written to the screen.

Example:

DIM a$, b$, c$

a$ = "three"
b$ = "four"
c$ = "five"

WRITE "one", "two", a$, b$, c$

Result:

"one","two","three","four","five"