Hey i keep getting this null reference exception error and i can't figure out what i need to do to fix it.
I have this in the form
and this in a module:Code:Private Sub cbLookUp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbLookUp.Click Dim webDownload As New Net.WebClient Dim strHtml As String Dim strSkillSet() As String Dim strSkillData() As String Dim i As Integer 'Dim a As Integer Dim lol As Control() = clsArray.getMixedControlArray(Me, "lblHS") strHtml = webDownload.DownloadString(strHighscores & txtUsername.Text) strSkillSet = Split(LCase(strHtml), " ") For i = 0 To UBound(strSkillSet) strSkillData = Split(LCase(strSkillSet(i)), ",") 'For a = 0 To UBound(strSkillData) strHSData(i).intRank = strSkillData(0) strHSData(i).intLevel = strSkillData(1) strHSData(i).intXp = strSkillData(2) 'Next lol(i).Text = strHSData(i).intLevel Next End Sub
Throw's the error on the first loop.Code:Public strHSData() As HighScores Public Structure HighScores Public intRank Public intLevel Public intXp End Structure
Thanks





Reply With Quote