Filling a multidimensional array as a constant

I have an array MyArray[1..140,1..6] of String, and as all the data is constant I want to hard-wire it as a constant.  What is the syntax for filling the array at design time.  (I know how to do it for one dimension, but not two!)
LVL 3
jdthedjAsked:
Who is Participating?
 
JosephGloszConnect With a Mentor Commented:
Or, perhaps this example makes it even easier:

  MyArray: array[1..3,1..6] of string =
    (('1A','1B','1c','1d','1e','1f'),
     ('2a','2b','2c','2d','2e','2f'),
     ('3a','3b','3c','3d','3e','3f'));
0
 
JosephGloszCommented:
const
  MyArray: array[1..3,1..2] of string = (('1A','1B'),('2a','2b'),('3a','3b'));

just change the numbers and fill in the data according to the pattern!
0
 
jdthedjAuthor Commented:
Thanks Joseph!
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.