Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have this value on my richtextbox
1,2 
3,4 
7,1
5,6
1,5
6,7
...........

there is no specific length or line that it will stop but it will stop when i press the button to stop sending data i would like to ask how to select or get the specific data
i need to get the max,min and last line i hope you understand my English thank you in advance!

What I have tried:

i tried this one
Dim mx As String
Dim mn As String
Dim lv As String
        mx = resulttxt1.Lines.Max.ToString 'it work and i get 7,1 
        mn = resulttxt1.Lines.Min.ToString ' this dont work anymore 
Posted
Updated 26-Mar-18 20:33pm
Comments
Maciej Los 27-Mar-18 7:01am    
Does decimal separator is "," in your country?

1 solution

Well, you're code seems to work, as long as you're last line is not kept empty ("", VbCrLf, etc.).

Also:
lv = resulttxt1.Lines.Last.ToString
seems to work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900