对的
VB当中,对于逻辑值的规定:
0 为False
非0 为True
if check1.value and not check2.value then
所以当check1.value=1 ,check2.value=0 代入得到
if 1 and not 0 then
再把1转换成True,0转换成False得到
if True and not False then
即:
if True and True then
即:
if True then
对的。
CheckBox 的Value属性,为0表示没有选中,为1表示选中。
Caption 属性,代表的是CheckBox上你“看到的”文字内容。