title: Naming Optional Parameters in Visual Basic
body: <p>In Visual Basic, I have functions with a lot of optional arguments. I would like to be able to pass just a few of these optional arguments to a function without having to use numerous commas and spaces to get to the ones I want. Somewhere I saw a way to named params such as <code>OptVar:=val</code>, but that does not seem to work. Just wondering if there is a way to do this. This would help readability.  </p>
  
  <pre><code>Function foo(Optional val1 = 1, Optional val2 = 2, Optional val3 = 3) 
  End Function
  </code></pre>
  
  <p>To use <code>foo</code> with only the last arg needed like this: </p>
  
  <pre><code>fud = foo( , , 4)
  </code></pre>
  
  <p>is a little unwieldy. It would be better if a construct like this worked: </p>
  
  <pre><code>fud = foo(val3:=4)
  </code></pre>
  
  <p>But this does not work. </p>