A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

whats wrong with this code?

992 views · started by Jah ·
#1
whats wrong with this code?
I'v tried it and it's not working for me but it's not giving me any errors neither any result :/

 Dim AviPic As String = Wrapper.Between(strHtml, "<img src=" & Chr(34), Chr(34) & " alt=" & Chr(34) & "My Avatar")
PictureBox1.ImageLocation = AviPic

            Dim GOGold As String = Wrapper.Between(strHtml, "Gold: </span>", "<")
Label3.Text = "Gold: " & GOGold
#2
Your assigning variables as soon as they are declared.

it could be that strHTML hasn't been used at all yet, and its trying to grab the String between an empty variable.
#3
PictureBoxName.URL (I think) = Wrapper.Between(strHtml, "<img src=" & Chr(34), Chr(34) & " alt=" & Chr(34) & "My Avatar")
#4
It's ImageLocation.

 PictureBox.ImageLocation = Image'sURL.ToString