title: Can a VBScript function return a dictionary?
body: <p>I have a dictionary of form data that I want to modify using a function.</p>
  
  <pre><code>function queryCleanForm(myDictForm)
  
      dim arrayKeys
      arrayKeys = myDictForm.keys
  
      for i=0 to myDictForm.count-1
          myDictForm(arrayKeys(i)) = replace(myDictForm(arrayKeys(i)), "'", "''")
          response.write myDictForm(arrayKeys(i))
      next
  
      queryCleanForm = myDictForm
  end function
  </code></pre>
  
  <p>The problem is the line <code>queryCleanForm = myDictForm</code> errors as </p>
  
  <pre><code>Wrong number of arguments or invalid property assignment 
  </code></pre>
  
  <p>Is there a way to do this in VBScript?</p>