Skip to content

OPTION NOKEYWORD


"取消定义"一个保留关键字

语法

` Option Nokeyword keyword

`

参数

keyword

要取消定义的关键字

描述

Option Nokeyword 是一个语句,用于取消定义一个 FreeBASIC 保留关键字,使其可以用作变量、对象、过程或任何其他符号的标识符。该关键字在使用 Option Nokeyword 的模块的其余部分中被取消定义。

示例

start GeSHi

vb
'' 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'

end GeSHi

方言差异

与 QB 的差异

  • FreeBASIC 新增

参见

  • #undef

返回 目录

基于 FreeBASIC 官方文档翻译 如有侵权请联系我们删除
FreeBASIC 是开源项目,与微软公司无隶属关系