数据库中有一个字段的值是逻辑类型的,我想在VB中有checkbox实现当数据库中字段的值为真时,checkbox被选中,为假时checkbox不被选,我是这样写的,但是不对,请大家指教
If dgr.TextMatrix(0, 1) = "true" Then
che.Value = 1
Else 'If dgr.TextMatrix(0, 1) = "false" Thenche.Value = 0
If dgr.TextMatrix(0, 1) = "true" Then
che.Value = 1
Else 'If dgr.TextMatrix(0, 1) = "false" Thenche.Value = 0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货