type TPoints = array of TPoint; <- how to make const out of it?

Hello experts :-)


type TPoints = array of TPoint;

const
MyPoints : TPoints =
(
 point1,
point2... and so on... but how can I do it?
)

Question: how can I create const variable called MyPoints with let's say 3 pre- selected points?

Thank you

panJames
panJacekAsked:
Who is Participating?
 
thiagoblimeiraCommented:
type
 TPoints = array [0..2] of TPoint;

const
    MyPoints : TPoints = ((X:1;Y:2),(X:3;Y:4),(X:5;Y:6));
0
 
thiagoblimeiraCommented:
const
    MyPoints  : array[0..2] of TPoint = ((X:1;Y:2),(X:3;Y:4),(X:5;Y:6));
0
 
panJacekAuthor Commented:
The thing is that I need to use MyPoints as a variable passed to methods so it need to be of type TPoints...


panJame
0
 
panJacekAuthor Commented:
Does not answer my question in full.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.