Difference between revisions of "ZH/Documentation/BASIC Guide/Boolean"
From Apache OpenOffice Wiki
(New page: {{DISPLAYTITLE:布尔变量}} {{ZH/Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Numbers |NextPage=Documentation/BASIC Guide/Da...) |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|ShowPrevNext=block | |ShowPrevNext=block | ||
|ShowPrevPage=block | |ShowPrevPage=block | ||
− | |PrevPage=Documentation/BASIC Guide/Numbers | + | |PrevPage=ZH/Documentation/BASIC Guide/Numbers |
− | |NextPage=Documentation/BASIC Guide/Date | + | |NextPage=ZH/Documentation/BASIC Guide/Date |
|lang=block | |lang=block | ||
}} | }} | ||
Line 17: | Line 17: | ||
{{PDL1}} | {{PDL1}} | ||
+ | |||
+ | |||
{{InterWiki_Languages_BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}} | {{InterWiki_Languages_BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}} |
Latest revision as of 22:27, 16 December 2008
布尔变量只能包含以下两个值之一:True 或 False。这些变量适用于只能采用两种状态之一的二进制规范。在内部,将布尔值保存为两字节整型值,其中,0 对应于 False,而任何其他值对应于 True。布尔变量没有类型声明符号,只能使用补充的 As Boolean 进行声明。
布尔变量的声明示例:
Dim Variable As Boolean
Content on this page is licensed under the Public Documentation License (PDL). |