title: vb6 Declare an Array
body: <p>I have this code :</p>
  
  <pre><code>' Option Explicit
  Public Function Clean(Text)
      On Error Resume Next
      ' Dim Chars As ?????????
      Chars = Array("\", "/", ":", "*", "?", """", "&lt;", "&gt;", "|")
      For Each Replaced In Chars
          Text = Replace(Text, Replaced, "")
      Next
      Clean = CStr(Text)
  End Function
  </code></pre>
  
  <p>But i got an error when use <code>Option Explicit</code> because the Chars is not declared, but what type must i use to dim an array (<code>Dim Chars As ???????</code>)?</p>