Difference between revisions of "JA/Documentation/BASIC Guide/Boolean"
From Apache OpenOffice Wiki
(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=JA/Documentation/BASIC Guide/Numbers |
− | |NextPage=Documentation/BASIC Guide/Date | + | |NextPage=JA/Documentation/BASIC Guide/Date |
|lang=block | |lang=block | ||
}} | }} | ||
Line 15: | Line 15: | ||
Dim Variable As Boolean | Dim Variable As Boolean | ||
</source> | </source> | ||
+ | |||
{{PDL1}} | {{PDL1}} | ||
{{InterWiki_Languages_BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}} | {{InterWiki_Languages_BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}} |
Latest revision as of 16:46, 15 December 2008
ブール型変数には、True (真) および False (偽) という 2 つの値の一方を収めることができます。この変数型は、2 つの状態の一方のみを取る情報を扱う場合に適しています。ブール型の値は、内部的には 2 バイトの整数値として格納され、0 が False に該当し、その他すべての値は True として扱われます。ブール型変数には、型宣言子は存在しません。この場合は、As Boolean による型宣言のみが行えます。
ブール型変数の宣言は、次の形式で行います。
Dim Variable As Boolean
Content on this page is licensed under the Public Documentation License (PDL). |