Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I declare a multidimensional array of constant values ? 1

Status
Not open for further replies.

liamlaurent

IS-IT--Management
Oct 30, 2006
30
DM
Hello All,

I would like to declare a multidimension array of constant values. I want to do something like this:

const
A: Array[1..2,1..2] of real = ( 1.0,2.0,
3.0,4.0);

It will work for a one dimensional array but it does not for multidimensional arrays.

Any ideas?

Liam
 

You're close:
Code:
const
  A: Array[1..2,1..2] of real =  ((1.0,2.0),(3.0,4.0));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top