level 11
我觉得不如把数据读出来在程序中查找,这样可能好操作一些
2013年06月03日 16点06分
5
level 10
Dim Filen% = FreeFile()
Dim Tmp$ = "", Tmp1() As String
Dim OrGet As Boolean = False
FileOpen(Filen, "C:\1.txt", OpenMode.Input)
Do While (Not EOF(Filen)) Or OrGet
Tmp = LineInput(Filen)
If InStr(Tmp, TextBox1.Text) > 0 Then
Tmp1 = Tmp.Split(",")
If option1.value Then
If InStr(Tmp1(0), TextBox1.Text, CompareMethod.Text) > 0 Then
TextBox2.Text = Tmp(2)
OrGet = True
End If
Else
If InStr(Tmp1(1), TextBox1.Text, CompareMethod.Text) > 0 Then
TextBox2.Text = Tmp(2)
OrGet = True
End If
End If
End If
Loop
FileClose(Filen)
2013年06月04日 00点06分
6