Dim b as Byte
Sub CheckBox1_CheckedChange(Checked As Boolean)
If CheckBox1.Checked = True Then Bit.And(b, 1)
else Bit.Or(b, 1)
endif
End Sub
Sub CheckBox2_CheckedChange(Checked As Boolean)
If CheckBox2.Checked = True Then Bit.And(b,2)
else Bit.Or(b, 2)
endif
End Sub
Sub CheckBox3_CheckedChange(Checked As Boolean)
...
End Sub
Sub CheckBox4_CheckedChange(Checked As Boolean)
...
End Sub
Sub CheckBox5_CheckedChange(Checked As Boolean)
...
End Sub
Sub CheckBox6_CheckedChange(Checked As Boolean)
...
End Sub
Sub CheckBox7_CheckedChange(Checked As Boolean)
...
End Sub
...
Sub CheckBox8_CheckedChange(Checked As Boolean)