title: How to Get 2 Return values in one Function
body: <p>I want to get two output values in one Function is't possible ?.
  I am just using String data type and split the values.
  but have any other easy way to get two output values...</p>
  
  <p>Actually I want to checking a folder how many jpg files are Horizontal and vertical 
  so</p>
  
  <pre><code>Public Function HVChecking() as string
    Dim HCount%, VCount%
    '' 
    ''
    ''
    ''
   Return HCount.ToString &amp; "|" &amp; VCount.ToString
  End Function
  </code></pre>
  
  <p>finally I split the values with "|" character...</p>
  
  <p>have any other options to get two values as separate in one functions.</p>
  
  <p>I have no idea about Dictionary, HashTable... Which one is best for this?</p>