title: Ext.Msg.confirm inside function return value
body: <p>I need to create a function that returns a (boolean)result when the user clicks yes or no. I'm using a <code>Ext.Msg.confirm</code>. Below my function (testcase).</p>
  
  <pre><code>function returnAnswer() {
  
      Ext.Msg.confirm('HardCoded', 'Do you want hard-coded strings in your application?', 
      function(btn) {
          if (btn === 'yes') {
              return true;
          } else {
              return false;
          }
      });
  }
  </code></pre>
  
  <p>In the above function a "callback" function returns a result and not my actual function.<br>
  How can I get <code>returnAnswer</code> function return a result?</p>
  
  <p>Thanks in advance.</p>