Re: Get Line in richtextbox1
does it startwith "setLSBCookie(" or contain "setLSBCookie(" ?
Re: Get Line in richtextbox1
Quote:
Originally Posted by
.paul.
does it startwith "setLSBCookie(" or contain "setLSBCookie(" ?
Starts with "setLSBCookie("
Re: Get Line in richtextbox1
try this:
vb Code:
dim index = (from line in RichTextBox1.Lines _
where line.startswith("setLSBCookie(") _
select RichTextBox1.Lines.IndexOf(line)).toarray
msgbox(index(0))
Re: Get Line in richtextbox1
sorry, my mistake. it should be:
vb.net Code:
Dim index = (From line In RichTextBox1.Lines _
Where line.StartsWith("setLSBCookie(") _
Select Array.IndexOf(RichTextBox1.Lines, line)).ToArray
MsgBox(index(0))