做成空间数组,然后在MouseUp 事件中加入Private Sub chkGSMZCD_MouseUp(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
Call CheckOne(Index, 3, chkGSMZCD)
End Sub
Public Sub CheckOne(Index As Integer, num As Integer, check As Variant)
Dim i As Integer
For i = 0 To (num - 1)
If check(i).value = 1 And i <> Index Then
check(i).value = 0
End If
Next
End Sub
Call CheckOne(Index, 3, chkGSMZCD)
End Sub
Public Sub CheckOne(Index As Integer, num As Integer, check As Variant)
Dim i As Integer
For i = 0 To (num - 1)
If check(i).value = 1 And i <> Index Then
check(i).value = 0
End If
Next
End Sub
解决方案 »
- 怎么从 SQL SERVER 2000中的 IMAGE 字段中取得一幅图象并进行显示
- double数据转换为String是的问题
- 【请教】基础模糊查询问题,我是菜鸟,但肯定结帐!
- combo box控件的Change事件为什么不起作用呢?
- 我是一个新手,谁可以给我讲讲怎样调用api函数。
- 时间问题!!(奉上100分,望笑纳!)
- 有谁知道那里有LISTVIEW和TREEVIEW两个控件配合使用的代码啊,主要做资源管理器
- 送分问题---请问在vb中如何用相对路径声明一个dll??
- 请各位大虾指教
- ???我有个小问题帮帮我
- model
- 什么样的程序能做模块?模块中函数的调用和调用其他函数有什么区别??
Private Sub Check1_Click(Index As Integer)
Dim i As Integer
If Check1(Index).Value = Checked Then
For i = 0 To Check1.Count - 1
If i <> Index Then Check1(i) = Unchecked
Next i
End If
End Sub