Dim strLine As String, i As LongOpen App.Path & "\line.dll" For Binary As #1 Do Until EOF(1) Line Input #1, strLine If Left(strLine, 3) = line1.Text Then MSFlexGrid1.TextMatrix(i + 1, 0) = Left(strLine, 3) MSFlexGrid1.TextMatrix(i + 1, 1) = Mid(strLine, 5) i = i + 1 End If Loop Close #1
Do Until EOF(1)
Line Input #1, strLine If Left(strLine, 3) = line1.Text Then
MSFlexGrid1.TextMatrix(i + 1, 0) = Left(strLine, 3)
MSFlexGrid1.TextMatrix(i + 1, 1) = Mid(strLine, 5)
i = i + 1
End If
Loop
Close #1