Q(uick)BASIC Keyword: AS
Quick View
AS Clause
Different Uses
Worth knowing
Useful and cross-version information about the programming environments of QBasic and QuickBasic.
Description/Parameter(s)
Performs different actions as part of several statements:
- Specifies a variable type when used in the COMMON, DECLARE, DEF FN, DIM, FUNCTION, REDIM, SHARED, STATIC, and SUB statements.
- Specifies an element type in a user-defined data type when used in the TYPE statement.
- Assigns a file number to a file or device when used in the OPEN statement.
- Specifies a field name when used in the FIELD statement.
- Specifies a new file name when used in the NAME statement.
Description/Parameter(s)
To specify a variable's type in a declarative statement or parameter list:
⮜ COMMON ⮞ | ⮜ DEF FN ⮞ |
⮜ SUB ⮞ | ⮜ FUNCTION ⮞ |
⮜ DIM ⮞ | ⮜ REDIM ⮞ |
⮜ SHARED ⮞ | ⮜ STATIC ⮞ |
⮜ DECLARE SUB | FUNCTION ⮞ |
To specify an element's type in a user-defined data type: | ⮜ TYPE…END TYPE ⮞ |
To assign a file number to a file or device in an OPEN statement: | ⮜ OPEN ⮞ |
To specify a field name in a random-access record: | ⮜ FIELD ⮞ |
To specify a new file name when you rename a file: | ⮜ NAME ⮞ |
Description/Parameter(s)
To specify a variable's type in a declarative statement or parameter list:
⮜ COMMON ⮞ | ⮜ DEF FN ⮞ |
⮜ SUB ⮞ | ⮜ FUNCTION ⮞ |
⮜ DIM ⮞ | ⮜ REDIM ⮞ |
⮜ SHARED ⮞ | ⮜ STATIC ⮞ |
⮜ DECLARE SUB | FUNCTION ⮞ |
To specify an element's type in a user-defined data type: | ⮜ TYPE ⮞ |
To assign a file number to a file or device: | ⮜ OPEN (File I/O) ⮞ |
To specify a field name in a random-access record: | ⮜ FIELD ⮞ |
To specify a new file name when you rename a file: | ⮜ NAME ⮞ |