Boolean luokka
Esimerkkejä:
Dim s, r As Boolean
Dim Tulos As Integer
Dim TulosBitit() As Integer
Dim Totuus As Boolean
Dim Teksti As String
s = True : r = False
'
'Vakioita
Teksti = Boolean.TrueString 'True
Teksti = Boolean.FalseString 'False
' Vertailu
Tulos = s.CompareTo(r)
' Yhtäsuuruus
Totuus = s.Equals(r)
' Tiiviste koodi
Tulos = s.GetHashCode()
' tyyppi
If s.GetType() Is Tulos.GetType Then s = True
' tyyppikoodi
Dim tc As System.TypeCode = s.GetTypeCode()
'
' tekstiksi
Teksti = s.ToString
' tekstistä totuuteen
s = Boolean.Parse(Teksti)