title: Calling a Sub and returning a value
body: <p>This might seem like an insanely easy question, but I can't seem to find an answer anywhere to it. I'd like to think that I am decent at VB but while I was learning javascript the other day I found something that seemed awesome and now I can't figure out how to do it in VB.</p>
  
  <p>In javascript it looks like this:</p>
  
  <p>var someValue = getThatValue()</p>
  
  <p>It's both calling and setting the value from the getThatValue() sub. what is the VB equivalent? </p>
  
  <hr>
  
  <h2><strong>Edit</strong></h2>
  
  <p>I've tried doing this:</p>
  
  <pre><code>   private sub main()
         dim value = getValue()
         'do something with value
     end sub
  
     private sub getValue()
         return 3
     end sub
  </code></pre>
  
  <p>That doesn't seem to work, how can I get that to work?</p>