title: Error in Visual Basic and I have no idea why
body: <p>First of all i'm french so excuse me if i make some mistakes</p>
  
  <p>I begin in Visual Basic, i have been in class since 2 months and i have my first "big" project at the university</p>
  
  <p>My module is the following:</p>
  
  <pre><code>Public Function CanPlay(ByVal i As Integer) As Boolean
  
  Dim possible As Boolean
  Dim t() As Integer
  
  For i = 1 to 6
  If t(i) = 0 Then
  possible = False
  Else possible = True
  
  Next i
  Return possible
  
  End Function
  </code></pre>
  
  <p>I am creating a game named Kalaha and need to say if a player can play or not, if t(i) is equal to 0 on all his cases, player can't play
  But my first " t(i) = 0" doesn't work, he underlined it in green and say there is no value assigned for t but i just declared it at the beginning ...</p>