Boolean Variables
From Apache OpenOffice Wiki
< G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide
Revision as of 07:19, 8 September 2009 by G11nAutomation (talk | contribs)
< {{#switch:Previous Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} | {{#switch:Next Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} > |
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). |