Boolean Class

Boolean is an intrinsic data type in REALbasic. A Boolean can only take on the values of True or False.

The default value is False.

Boolean values are False by default but can be set to True using REALbasic's True keyword and back to False using the False keyword. Some of the properties of objects in REALbasic are Boolean values. In the Properties pane, they appear as checkboxes.

The VarType function returns 11 when passed a Boolean variable.

# Example

The following statement disables an EditField, making it non-enterable and non-selectable (i.e., the user can't tab into it).

EditField1.Enabled= False

# See Also

False, True, VarType functions; Dim statement; And, Not, Or operators; Color, Double, Int8, Int16, Int32, Int64, Integer, Ptr, Single, String, UInt8, UInt16, UInt32, UInt64, Variant data types.