Foxtable(狐表)用户栏目专家坐堂 → [求助]这段代码怎么修改?


  共有2231人关注过本帖树形打印复制链接

主题:[求助]这段代码怎么修改?

帅哥哟,离线,有人找我吗?
大红袍
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/6/8 11:42:00 [显示全部帖子]

参考代码

 

Dim ctls1() As String = {"CheckBox1","CheckBox2","CheckBox3","CheckBox4","CheckBox5","CheckBox6","CheckBox7","CheckBox8","CheckBox9","CheckBox10"}
Dim ctls2() As String = {"车号1", "车号2", "车号3"}
for i as integer = 0 to ctls1.length - 1
    If e.form.controls(ctls1(i)).Checked Then
        e.form.controls(ctls2(i)).Enabled = True
    Else
        e.form.controls(ctls2(i)).Enabled = False
    End If
next


 回到顶部