title: Output array to MsgBox
body: <p>I do PowerShell not VBScript, so I am a little lost.  I am trying to list all mapped drives (drive letter and share path) in a MsgBox. I get a type mismatch error when running the script. If I change "Dim myArray()" to "Dim myArray" I get only one item from the variable.</p>
  
  <pre><code>Set objNetwork = WScript.CreateObject("WScript.Network")
  Set colDrives = objNetwork.EnumNetworkDrives
  Dim myArray()
  For i = 0 to colDrives.Count-1 Step 2
   myArray = colDrives.Item(i) &amp; vbTab &amp; colDrives.Item (i + 1)
  Next
  MsgBox(myArray)
  </code></pre>
  
  <p>How can I get the data saved to an array, then output to a MsgBox?</p>