Q(uick)BASIC Command: Substring

Quick View

Substring Command

The Execute "(X)" Substring Command

Worth knowing

Useful and cross-version information about the programming environments of QBasic and QuickBasic.

Description/Parameter(s)
Substring Command Description
X stringexpression Execute substring. This command allows you to execute a second substring from a string. You may have one string expression execute another, which executes a third, and so on.
Numeric arguments can be constants like 123 or variable names.
QuickBASIC requires the
  • "X" + VARPTR$(string-expression)
form of this command. This is different than the BASICA form of the command.
Description/Parameter(s)

The Execute Substring command allows you to execute a second substring from a DRAW command string. You can have one string expression execute another, which executes a third, and so on.

  • This command has the following syntax:

  • DRAW stringexpression$

  • "X" + VARPTR$(string-expression)

  • Numeric arguments to macrocommands within stringexpression$ can be constants or variable names.