>Hi everyone,
>
>I'm just thinking, is it possible to return an array into top-level procedure from the form? What are the possible scenarios?
>
>Say, External array in form.Init method as a parameter?
>Or declare this array in calling procedure and return in Form.Unload?
>
>Or we can not return an array?
A modal form can return a simple variable; arrays don't qualify. You can pass in an array by reference and modify it; the results would be visible on exit, but nothing would be explicitly returned.
By far the best approach to the problem would be to pass back an object that contained a member array; you can return an object (it's a single item) and then examine the content. You can use this technique any time you need to pass back arrays or multiple values.