布尔变量

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
doc OOo
Book.png

布尔变量只能包含以下两个值之一:TrueFalse。这些变量适用于只能采用两种状态之一的二进制规范。在内部,将布尔值保存为两字节整型值,其中,0 对应于 False,而任何其他值对应于 True。布尔变量没有类型声明符号,只能使用补充的 As Boolean 进行声明。

布尔变量的声明示例:

 Dim Variable As Boolean
Content on this page is licensed under the Public Documentation License (PDL).


Personal tools