title: How to match two Arrays in VB6
body: <p>How can I match <code>the two Arrays</code> using <code>VB6</code>?Take note: <strong>THIS IS DYNAMIC ARRAY</strong>. In my program I will parse first the <code>CSV file</code> per line then save the first line in the first Array then the second line will be save in the second array. The next thing that I need to do is to get the difference of the specific items in Arrays.</p>
  
  <p>My problem is this:</p>
  
  <p>For example:</p>
  
  <p>This is my first Array</p>
  
  <pre><code>MyArray(0) =&gt; 10
  MyArray(1) =&gt; 45
  MyArray(2) =&gt; 3
  MyArray(3) =&gt; 0
  MyArray(4) =&gt; 89
  </code></pre>
  
  <p>This is my second Array</p>
  
  <pre><code>MysecondArray(0) =&gt; 10
  MysecondArray(1) =&gt; 45
  MysecondArray(2) =&gt; 22
  MysecondArray(3) =&gt; 3
  MysecondArray(4) =&gt; 0
  MysecondArray(5) =&gt; 89
  </code></pre>
  
  <p>As you notice the two Array have a different length and if you match it this is the structure</p>
  
  <pre><code>MyArray(0) =&gt; 10                   MysecondArray(0) =&gt; 10
  MyArray(1) =&gt; 45                   MysecondArray(1) =&gt; 45
  MyArray(2) =&gt; 3                    MysecondArray(2) =&gt; 22
  MyArray(3) =&gt; 0                    MysecondArray(3) =&gt; 3
  MyArray(4) =&gt; 89                   MysecondArray(4) =&gt; 0
                                     MysecondArray(5) =&gt; 89
  </code></pre>
  
  <p>but it should be like this</p>
  
  <pre><code>MyArray(0) =&gt; 10                   MysecondArray(0) =&gt; 10
  MyArray(1) =&gt; 45                   MysecondArray(1) =&gt; 45
                                     MysecondArray(2) =&gt; 22
  MyArray(2) =&gt; 3                    MysecondArray(3) =&gt; 3
  MyArray(3) =&gt; 0                    MysecondArray(4) =&gt; 0
  MyArray(4) =&gt; 89                   MysecondArray(5) =&gt; 89
  </code></pre>
  
  <p>And when I get the difference It should be like this</p>
  
  <pre><code>0
  0
  22
  0
  0
  0
  </code></pre>
  
  <p>If it is possible it will become like this</p>
  
  <pre><code>MyArray(0) =&gt; 10                   MysecondArray(0) =&gt; 10
  MyArray(1) =&gt; 45                   MysecondArray(1) =&gt; 45
  MyArray(2) =&gt; 0                    MysecondArray(2) =&gt; 22
  MyArray(3) =&gt; 3                    MysecondArray(3) =&gt; 3
  MyArray(4) =&gt; 0                    MysecondArray(4) =&gt; 0
  MyArray(5) =&gt; 89                   MysecondArray(5) =&gt; 89
  </code></pre>
  
  <p>How can I achieve this using <code>VB6</code>?</p>