I'm new to vb.net and English is not my first language, Please note this :)
I know Value of type string cannot be converted to String() but how to fix it.... help me!
This is my code below here, I don't know how to add each line of richtextbox into array
I want 'itvalue' to array :(
For v = 8 To 18
Dim myArr As String() = richtextbox.Lines(v)
Next
' i want ↓ to ↑
For linerepeat As Integer = 1 To 3 '
If linerepeat = 3 Then
i -= 3
Else
i = 5
End If
Dim itvalue As String
itvalue = Mid(ReceiveBox.Lines(8), h, i)
itvalue = Mid(ReceiveBox.Lines(9), h, i)
·
·
·
itvalue = Mid(ReceiveBox.Lines(18), h, i)
h += 7
If h = 29 Then Exit For
Next
Mid()exists for backwards compatibility with old pre-.Net VB and should not be used in new code. You should usestring.SubString()instead.