Board index » delphi » Array of const

Array of const

Hallo!

I have a little problem, I know how to use the "Array of Const"
But I want this type to export data from a procdure like this how should
I do?

The normal and working example for import:
Procedure AddData(data : Array of const);

How can I do to export data ?

Please help me.
Thanks Christer Jansson

 

Re:Array of const


How about
function ItemIs( const index: integer ) : yourtype;

--
Grace + Peace | Peter N Roth | Engineering Objects Int'l
Author: "Creating a Robust Type-Safe TList", Delphi Developer Oct 97
Visit our website at http://www.inconresearch.com/eoi
"On the internet, nobody knows you're a dog." - P Steiner

Quote
Christer Jansson wrote in message <34B159DA.885B6...@algonet.se>...
>Hallo!

>I have a little problem, I know how to use the "Array of Const"
>But I want this type to export data from a procdure like this how should
>I do?

>The normal and working example for import:
>Procedure AddData(data : Array of const);

>How can I do to export data ?

>Please help me.
>Thanks Christer Jansson

Other Threads