Try this: (Compiled successfully but untested)
type
TArrayOfInteger = Array of Integer;
functon createarray(input: Array Of Integer): TArrayOfInteger ;
You can even replace the internal "Array of Integer" with the type.
HTH,
Paul
Neil Beshoori wrote:
> Hi All
>
> I need to write a function in D5 that will create an array of integers.
>
> Writing the code is easy enough but I'm stumped on what appears to be
> very simple stuff
>
> How do I declare the result of the function
>
> function createarray(input : arrayof integer) : _Array of Integer_ ;
> this produces an error
>
> The function will receive an array of integers + count of elements and
> will produce an array of integers based on the input.
>
> Ideally I would like to return the array, followed by the number of
> elements in the array.
>
> Is this possible with Delphi?
>
> Thanks in advance
>
> Neil
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
>
>
>
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi