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

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: {{DISPLAYTITLE:ブール型変数}} {{JA/Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Numbers |NextPage=Documentation/BASIC Gu...)
(No difference)

Revision as of 02:09, 13 November 2008

doc OOo
Book.png

ブール型変数には、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).
Personal tools