Q(uick)BASIC Keyword: TO

Quick View

TO Keyword

Different Uses

Worth knowing

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

Description/Parameter(s)
  • Specifies ranges for:

  • A CASE clause of a SELECT CASE statement.
  • A loop counter in a FOR...NEXT loop.
  • Records to lock or unlock in a LOCK...UNLOCK statement.
  • Lower and upper bounds in a DIM or REDIM statement.
Description/Parameter(s)
  • The TO keyword is used to specify ranges in the following statements:

  • Specify a range in the CASE clause of a SELECT CASE statement.
  • Specify the range for the loop counter in a FOR...NEXT loop.
  • Specify a range of records to lock or unlock in a networked environment, in the LOCK...UNLOCK statement.
  • Separate the lower and upper bounds of an array specification in a DIM or REDIM statement.
Description/Parameter(s)
  • The TO keyword is used to specify ranges in the following statements:

  • Specify a range in the CASE clause of a SELECT CASE statement.
  • Specify the range for the loop counter in a FOR...NEXT loop.
  • Specify a range of records to lock or unlock in a networked environment, in the LOCK...UNLOCK statement.
  • Separate the lower and upper bounds of an array specification in a DIM or REDIM statement.