Difference between revisions of "ZH/Documentation/BASIC Guide/Boolean"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: {{DISPLAYTITLE:布尔变量}} {{ZH/Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Numbers |NextPage=Documentation/BASIC Guide/Da...)
 
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}}
 
{{InterWiki_Languages_BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}}

Revision as of 22:06, 12 December 2008

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