Get text from specefic line on website help

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
2 posts Page 1 of 1
Contributors
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

I have 2 websites for 2 radios i have in my radio program and i would like to have it show the track from these 2 websites, ive figured it out with the other radio stations i had but i need help with these 2 which is diffrent from the others

http://www.technobase.fm/
http://www.hardbase.fm/

Image
https://t.me/pump_upp
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

try out
Code: Select all
You could use this to get a specified line from the TextBox.
TextBox2.Text = TextBox1.Lines(2) '// get line 3.
or loop
Code: Select all
For Each txtLine As String In TextBox1.Lines '// loop thru all lines in TextBox.
            If txtLine.StartsWith("leaning daniweb.com") Then '// check if line .StartsWith a specified String.
                TextBox2.Text = txtLine '// get line content.
                Exit For '// exit loop since line was located.
            End If
        Next

#credits goes to daniweb
Find my programs on Softpedia
2 posts Page 1 of 1
Return to “Coding Help & Support”