title: Function Returning Boolean?
body: <p>I have simple function in VBA and I would need to check whether or not it has been successfully performed. I do not know VBA much, so I have no idea whether or not its possible. I want to do something like this: <code>bool X=MyFunction()</code>. </p>
  
  <p>I am using VBA in the <a href="http://en.wikipedia.org/wiki/HP_QuickTest_Professional" rel="noreferrer">QTP</a> descriptive programming. This does not work:</p>
  
  <pre><code>Function A as Boolean
     A=true
  End Function
  </code></pre>
  
  <p>It says: <code>Expected statement</code></p>
  
  <p>But I cannot see any return type in my method etc.</p>