title: System.Int32[] showing in textboxes in Visual Basic
body: <p>I'm working in Visual Basic. I'm passing integers to a label through a function but then the label displays the value it shows <code>System.Int32[]</code> and no error, when you click 'done' it saves and the save files shows the right number. If you could give me some advice and help it would be appreciated, thank you</p>
  
  <pre><code>'function for adding 1 point to your selected level.
  Private Function SkillPoints(IntSkill)
          'checks if you have enough level points
          If IntLevel &gt; 0 Then
              'adds 1 point to the selected skill and minuses 1 from Intlevel
              Intskillpoints(IntSkill) += 1
              IntLevel -= 1
              LblLvlPoints.Text = IntLevel
          Else
              MsgBox("You have run out of skill points.")
          End If
          ' returns the value to be shown in the label
          Return Intskillpoints
      End Function
  
  
      Private Sub BtnAtkPlus_Click(sender As Object, e As EventArgs) Handles BtnAtkPlus.Click
      'when you click the button it sets the lbl to the result of the function.
          LblAttackPoints.Text = SkillPoints(0).ToString
      End Sub
  </code></pre>