关于Check问题 结帖
一个List两个Text一个Check Private Sub List2_Click()
FileNum = FreeFile
On Error GoTo exittxt
Open App.Path & "\" & "公顶油压打板记录.txt" For Input As #FileNum
Line Input #FileNum, total '读入文件开头的一整行
While Not EOF(FileNum)
Input #FileNum, Strj, numj, strk1, strk2, strk3, strk4, strk5, strk7, strk8, strk9, strk10, strk11, strk12, strk13, strk14, strk15 '读入客户数据
If numj = List2.Text Then
Text44.Text = strk2: Text30.Text = strk11: Text33.Text = strk13: Text29.Text = strk4: Text31.Text = strk7
Text28.Text = strk15: Text34.Text = strk4: Text35.Text = strk7: Text36.Text = strk11: Text37.Text = strk13: Text38.Text = strk11: Text42.Text = strk1:
Exit Sub
End If
Wend
Close #FileNum
exittxt:
End Sub
Private Sub Text42_Change()
Check2.Value = 0
Text43.Text = ""
Text9.Text = Text45.Text
Text9.Text = ""
Command4.Caption = "公顶"
End Sub
Private Sub Text44_Change()
Check2.Value = 1
End Sub
Private Sub Check2_Click()
Dim a As Long
a = Check2.Value
If a = 1 Then
Text43.Text = "3"
Text43.Enabled = True
Else
Text43.Text = ""
Text43.Enabled = False
End If
End Sub
为什么来回重点List不勾上Check了呢????
[ 本帖最后由 xd12345 于 2013-12-24 14:41 编辑 ]