Option NoKeyword
"Undefines" a reserved keyword
Option NoKeyword keyword
keyword
Option NoKeyword is a statement that undefines a FreeBASIC reserved keyword, meaning it can be used as an identifier for a variable, object, procedure or any other symbol. The keyword is undefined for the rest of the module in which Option NoKeyword is used.
Syntax
Option NoKeyword keyword
Parameters
keyword
the keyword to undefine
Description
Option NoKeyword is a statement that undefines a FreeBASIC reserved keyword, meaning it can be used as an identifier for a variable, object, procedure or any other symbol. The keyword is undefined for the rest of the module in which Option NoKeyword is used.
Example
'' Compile with the "-lang fblite" compiler switch
#lang "fblite"
Option NoKeyword Int ' remove the keyword 'int' from the internal
' symbol table
Dim Int As Integer ' declare a variable with the name 'int'
#lang "fblite"
Option NoKeyword Int ' remove the keyword 'int' from the internal
' symbol table
Dim Int As Integer ' declare a variable with the name 'int'
Dialect Differences
- Only available in the -lang fblite and -lang qb dialects.
Differences from QB
- New to FreeBASIC
See also