Adblock breaks this site

getplayers function problem

Discussion in 'Programming General' started by slashshot007, Feb 20, 2007.

  1. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    getplayers function problem

    edit: solve problem but i'll give u the source now.

    Code:
        Function getplayers(ByVal world As Integer, ByVal html As String) As String
            Dim splits As String
            Try
                splits = Split(html, ">World " & world & "<")(1)
            Catch
                getplayers = "Full"
                Exit Function
            End Try
            splits = Split(splits, "<td>")(1)
            getplayers = splits.Remove(splits.IndexOf("</"))
        End Function
    usage:
    Code:
    		Dim i As String, web As New Net.WebClient
    		i = web.DownloadString("http://www.runescape.com/lang/en/aff/runescape/serverlist.ws?order=WMLP")
    		TextBox2.Text = getplayers(1, i)
     
< Request programs. | Output in a textbox >


 
 
Adblock breaks this site