title: VB How to return and receive 3-dimensional array from function
body: <p>I have faced with a problem of how to work with multidimensional array. I have a Function:</p>
  
  <pre><code>Public Function findCheckDigit(ByVal text As String) As String(,,)
      Dim msgLen As Integer = text.Length
      Dim value(msgLen + 2, 1, 1) As String
      ...
      ...
      ...
      Return value
  End Function
  </code></pre>
  
  <p>Below I try call this function:</p>
  
  <pre><code>Private Sub bGenerate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bGenerate.Click
          Dim value(tbText.Text.Length + 2, 1, 1) As Array
  
          value(tbText.Text.Length + 2, 1, 1) = findCheckDigit(tbText.Text)  &lt;--- Here is a problem
  
          MsgBox(value(0, 1, 0))  ' Return empty in any position
      End Sub
  </code></pre>
  
  <p>I`m sure that the problem in this place but how to implement my function call to another 3-dimensional array with the same size?</p>