What error are you getting? Is it runtime or compiletime?

Try passing (or just returning) a TList with the TObject(Int) values as the 
Objects. Haven't tried it, the mem manager may complain, but worth a 
go......

Or convert to strings and use a TStringlist.

Or create a simple Object which has a single Int property and add these to 
the TList.



----- Original Message ----- 
From: "Neil Beshoori" <[EMAIL PROTECTED]>
To: "Borland's Delphi Discussion List" <[email protected]>
Sent: Friday, March 23, 2007 6:45 PM
Subject: Delphi dll to return array of integers


> 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
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/732 - Release Date: 
> 24/03/2007 16:36
>
> 


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to