Difference between revisions of "Documentation/BASIC Guide/Boolean"
From Apache OpenOffice Wiki
< Documentation | BASIC Guide
m |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{DISPLAYTITLE:Boolean Variables}} | ||
{{Documentation/BASICGuideTOC/v2 | {{Documentation/BASICGuideTOC/v2 | ||
|ShowPrevNext=block | |ShowPrevNext=block | ||
Line 5: | Line 6: | ||
|NextPage=Documentation/BASIC Guide/Date | |NextPage=Documentation/BASIC Guide/Date | ||
|lang=block | |lang=block | ||
− | }} | + | }} |
− | + | ||
− | + | Boolean variables can only contain one of two values: <tt>True</tt> or <tt>False</tt>. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement <tt>As Boolean</tt>. | |
− | |||
− | Boolean variables can only contain one of two values: True or False. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement As Boolean. | ||
Example declaration of a Boolean variable: | Example declaration of a Boolean variable: | ||
+ | <syntaxhighlight lang="oobas"> | ||
Dim Variable As Boolean | Dim Variable As Boolean | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | {{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}} | ||
+ | {{PDL1}} |
Latest revision as of 11:02, 30 January 2021
Boolean variables can only contain one of two values: True or False. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement As Boolean.
Example declaration of a Boolean variable:
Dim Variable As Boolean
Content on this page is licensed under the Public Documentation License (PDL). |