1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/AS.md
2022-12-24 19:12:43 -06:00

1.5 KiB

The AS keyword defines a variable data Variable Types.

Description

Details

  • Specifies a parameter variable's type in a SUB or FUNCTION procedure. Cannot be used to define a function's Variable Types
  • Specifies an element's type in a user-defined data TYPE.
  • Assigns a file number to a file or device in an OPEN statement.
  • Specifies a field name in a random-access record (see FIELD)
  • Specifies a new file name when you rename a file (see NAME)
  • NOTE: Many QBasic keywords can be used as variable names if they are created as STRINGs using the suffix $. You cannot use them without the suffix, use a numerical suffix or use DIM, REDIM, _DEFINE, BYVAL or TYPE variable AS statements.

See Also