Syntax Conventions
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
KEYWORDS Items in capital letters are Basic keywords. Keywords
are a required part of the statement syntax, unless
they are enclosed in brackets.
placeholders Items in lowercase are placeholders for information
you must supply in the statement (such as a
filename$). The QBasic syntax uses data-type suffixes
for placeholders that must be a specific data type.
Placeholders that can be more than one data type do
not have data-type suffixes.
[optional item] Items inside square brackets are optional.
{choice1 | choice2} Braces and a vertical bar indicate a choice between
two or more items. You must use one of the items in
the statement unless the braces are enclosed in
square brackets.
item, item, ... A horizontal three-dot ellipsis means more of the
preceding items can be used in a single-line
statement.
Beginning keyword A vertical three-dot ellipsis is used to describe
. multiline statements (or block-structured
. statements). It means that other statements can be
. used between the beginning and the end of the block.
Ending keyword