Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Checkbox - set with Boolean value


'vbChecked = 1
'vbUnChecked = 0

'Abs(True) = 1
'Abs(False) = 0

checkbox1.checked = vbChecked
checkbox1.checked = Abs( True )

checkbox1.checked = vbUnChecked
checkbox1.checked = Abs( False )