Array with mutiple types?

Posted by aleluja on Stack Overflow See other posts from Stack Overflow or by aleluja
Published on 2010-05-09T16:28:45Z Indexed on 2010/05/09 16:38 UTC
Read the original article Hit count: 180

Filed under:
|
|

Hello,

I was wondering if there is a way to make an array which would have mutiple types of data fields.

So far i was using aMyArray: array of array [0..1] of TPoint;

But now, it is not enough for me. I need to add 3 more elements to the existing 2 "Point" elements making it an array like aMyArray: array of (TPoint,TPoint,real,real,real)

So each element of aMyArray would have 5 'children', 2 of which are of a TPoint type and 3 of them are 'real' type.

Is this possible to implement somehow?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about delphi-2009