|
3#
楼主 |
发表于 2016-3-30 10:32:21
|
只看该作者
本帖最后由 licho 于 2016-3-31 11:14 编辑
删除了
折腾了好久,只解决了一点点:
Dim produce_model(0 To 6) As Boolean
Dim Bin_mark As String
Dim i As Integer
Bin_mark = "0001000" 'bin_mark必须是由0和1组成的7位数字符串,此参数将由数据表传递
For i = 0 To 6
produce_model(i) = CInt(Mid(Bin_mark, i + 1, 1)) '先截取字符串,Mid的第2个参数需从1开始的整数,再将其转换为整数
Next i
Me.Chk_251.Value = produce_model(0)
Me.Chk_701D.Value = produce_model(1)
Me.Chk_F3.Value = produce_model(2)
Me.Chk_F4.Value = produce_model(3)
Me.Chk_F5.Value = produce_model(4)
Me.Chk_oth.Value = produce_model(5)
Me.Chk_oft.Value = produce_model(6)
|
|