title: How to return array from a Delphi function?
body: <p>I have a function in my application that needs to return an array. I have found in a couple of places how to do this by declaring the array type, e.g.</p>
  
  <pre><code>type
    TStringArray = array of string; 
  </code></pre>
  
  <p>And then declaring my function</p>
  
  <pre><code>function SomeFunction(SomeParam: Integer): TStringArray;
  </code></pre>
  
  <p>My problem is trying to set this up in a form that has both interface and implementation. How do I declare my type and have a function declaration with that type in the interface ?</p>