собщение об ошибке: Index and length must refer to a location within the string.
вот кусок проги:
- Код: Выделить всё
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim outstr$
Dim str$
Dim ser$
FileOpen(1, "c:\uchet_oborudovania.txt", OpenMode.Input)
Do Until EOF(1)
Input(1, str)
ser = str.Substring(0, 9)
If ser = ComboBox5.Text Then
outstr = outstr & str.Substring(10, 10) & vbCrLf & str.Substring(20) & vbCrLf & vbCrLf & vbCrLf
End If
Loop
FileClose(1)
RichTextBox2.Text = outstr
End Sub