• Log in or sign up for an account here: https://www.sythe.org/login

[VB6] fast and easy highscore lookup...

Status
Not open for further replies.
1. I can't choose User.text only:
User.Item
User.UBound
User.LBound
User.Count

I don't know which to choose, I did all of them but all of them contains:"Page not found" that msgbox shizzle

my code is:

Code:
Private Sub Command1_Click()

On Error Resume Next
Dim strLines() As String
Dim strElements() As String
Dim textBoxIndex As Integer

textBoxIndex = 0

strLines = Split(Inet1.OpenURL("http://hiscore.runescape.com/index_lite.ws?player=" & Username.UBound), Chr(10))

If InStr(strLines(O), "Page not found") Then
MsgBox ("User not found!"), vbCritical, ("Error")
GoTo TheEnd:
End If

For i = 0 To UBound(strLines)

strElements = Split(strLines(i), ",")
For X = 0 To UBound(strElements)
If (strElements(X)) = "-1" Then strElements(X) = "N/A"
txtValue(textBoxIndex).Text = strElements(X)
textBoxIndex = textBoxIndex + 1
Next X

Next i
TheEnd:

End Sub
User = Username here, I changed it :p

Because the "User" is a control array to refer to all of them it would be User(Index).Text
 
this is hard to explain but il do my best

you have to have 82 TxtValue

for example TxtValue(0),TxtValue(1),TxtValue(2),TxtValue(3), ect

make 82 of those if you need some help id be glad to make you a video that shows you how
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
locked... since its old and poster is banned... :/
 
Status
Not open for further replies.
duelarena.gg
Back
Top