Best way to read text field line by line in VB.net

What is the best way to read text box contents line by line in VB.net 2.0?

I am currently using the list specified in the TextBoxBase.Lines property on MSDN , but wanted to know what other methods could be read into the text box by line in VB.net.

+3
source share
2 answers

The Lines property is what you want to use. Parsing the Text property requires more code and does not speed it up. Write a better question if you have a reason for looking for an alternative.

+5
source

, textbox.Text.Split(vbnewline), .

For Each strLine As string In textbox.text.split(vbnewline)
...
Next
+10

Source: https://habr.com/ru/post/1756243/


All Articles