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

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 9: Line 9:
 
=Boolean Variables=
 
=Boolean Variables=
  
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.
+
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>.
  
 
Example declaration of a Boolean variable:
 
Example declaration of a Boolean variable:
  
 
  Dim Variable As Boolean
 
  Dim Variable As Boolean

Revision as of 10:08, 26 September 2007


Boolean Variables

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
Personal tools