title: Vbscript: Convert text string in small pieces and put it into a array
body: <p>I need to break a long text string into smaller pieces approximately once every 500 characters (not a special character), forming an array of all the sentences and then put them together separated by a specific character (eg / /). Something as follows:</p>
  
  <p>"This text is a very very large text."</p>
  
  <p>So, I get:</p>
  
  <pre><code>arrTxt(0) = "This is"
  arrTxt(1) = "a very"
  arrTxt(2) = "very large text"
  ...
  </code></pre>
  
  <p>And finally:</p>
  
  <pre><code>response.write arrTxt(0) &amp; "//" &amp; arrTxt(1) &amp; "//" &amp; arrTxt(2)...
  </code></pre>
  
  <p>Due to my limited knowledge of classic asp, the closest I came to a desired result was the following:</p>
  
  <pre><code>length = 200
  strText = "This text is a very very large."
  lines = ((Len (input) / length) - 1)
  For i = 0 To (Len (lines) - 1)
  txt = Left (input, (i * length)) &amp; "/ /"
  response.write txt
  Next
  </code></pre>
  
  <p>However, this returns a repeated and overlapping text string: "this is / / this is a / / this is a text //...</p>
  
  <p>Any idea with vbscript? Thank you!</p>