Need help from some experienced VB'ers

Discussion in 'Archives' started by tyr0n3, Jun 9, 2010.

Thread Status:
Not open for further replies.
Need help from some experienced VB'ers
  1. Unread #1 - Jun 9, 2010 at 8:13 AM
  2. tyr0n3
    Joined:
    Dec 7, 2007
    Posts:
    1,100
    Referrals:
    2
    Sythe Gold:
    0

    tyr0n3 Guru
    Banned

    Need help from some experienced VB'ers

    I'm trying to make a Highscores look up.. and i have no idea how to

    Can anyone help me?

    Covey, i know you have experience with this, mind lending a hand?
    Code:
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            Dim strlines() As String
            Dim strElemnts() As String
            Dim textboxIndex As Integer
    
            textBoxIndex = 0
    
    strLines = Split(Inet1.OpenURL("http://hiscore.runescape.com/index_lite.ws?player=" & User.Text), Char(10))
    
            If InStr(strLines(0), "Page not found") Then
                MsgBox("User Not Found!") 'Edit this line if you want to change the error user not found message
                GoTo TheEnd
            End If
    
            For i = 0 To Ubound(strLines)
    
    	strElements = Split(strLines(i), ","
                If (strElements(x)) = "-1" Then strElements(x) = "NA" 'Edit this line if you want to change the error not in highscores message
                TxtValue(textBoxIndex).Text = strElements(x)
                textBoxIndex = textBoxIndex + 1
            Next x
    
    Next i
    
    That's what i have been given from searching the net, but none of it works..
     
  3. Unread #2 - Jun 11, 2010 at 3:16 AM
  4. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Need help from some experienced VB'ers

    You have VB6 code in a .Net button... Are you using VB6, or .Net?
     
  5. Unread #3 - Jun 11, 2010 at 6:56 AM
  6. tyr0n3
    Joined:
    Dec 7, 2007
    Posts:
    1,100
    Referrals:
    2
    Sythe Gold:
    0

    tyr0n3 Guru
    Banned

    Need help from some experienced VB'ers

    I'm using VB Express 2008 edition.

    That code is not mine, i grabbed it from the Internet while Googling the problem.
    If you can provide better code or a fix for the provided code, that would be excellent.
     
  7. Unread #4 - Jun 11, 2010 at 8:07 AM
  8. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Need help from some experienced VB'ers

    I can't really provide a simple fix... VB6 and VB.Net are quite different for this kind of this thing. There a no control arrays, making most of this code irrelevant.

    Simply put, you're in the wrong section to ask this kind of thing. Check the VB.Net section for actual help.

    EDIT: A simple search returned: http://www.sythe.org/showthread.php?t=403877
     
  9. Unread #5 - Jul 22, 2010 at 5:00 AM
  10. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Need help from some experienced VB'ers

    Darthatron!
     
< [Lend] Armadyl godsword [Paypal] | Anyone use tumblr? >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site