4 Replies - 24869 Views - Last Post: 16 February 2010 - 11:46 AM Rate Topic: -----

#1 Vorfin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 11-February 10

Read Certain Line In TextBox?

Posted 16 February 2010 - 10:07 AM

I'm making a program to check proxies, although it works with individual proxy servers, I want to be able to import them into a textbox, and then use them one by one.

How would I go about reading a certain line of a textbox?

Eg.

Dim Proxy As String

Proxy = TextBox1.Line5



Or something along those lines.

Thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: Read Certain Line In TextBox?

#2 CharlieMay   User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1734
  • View blog
  • Posts: 5,710
  • Joined: 25-September 09

Re: Read Certain Line In TextBox?

Posted 16 February 2010 - 10:35 AM

To get the value of the 5th line of the Lines() array of the textbox you would use
TextBox1.Lines(4).Tostring

Was This Post Helpful? 0
  • +
  • -

#3 Vorfin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 11-February 10

Re: Read Certain Line In TextBox?

Posted 16 February 2010 - 10:41 AM

View PostCharlieMay, on 16 February 2010 - 09:35 AM, said:

To get the value of the 5th line of the Lines() array of the textbox you would use
TextBox1.Lines(4).Tostring


Well, that was a lot easier than expected, thanks.

How would I count the lines in the textbox, so I know when I've used them all?

This post has been edited by Vorfin: 16 February 2010 - 10:43 AM

Was This Post Helpful? 0
  • +
  • -

#4 CharlieMay   User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1734
  • View blog
  • Posts: 5,710
  • Joined: 25-September 09

Re: Read Certain Line In TextBox?

Posted 16 February 2010 - 10:56 AM

lines().count
Was This Post Helpful? 0
  • +
  • -

#5 Vorfin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 11-February 10

Re: Read Certain Line In TextBox?

Posted 16 February 2010 - 11:46 AM

View PostCharlieMay, on 16 February 2010 - 09:56 AM, said:

lines().count


Thanks =)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1