Can I initialize a constant dynamic array of arrays?
If:
type
tNamePair = array[1..2] of String;
tPairList = array of tNamePair;
How can I create an initialized constant? I can't get the code below compile:
const
PairList: tPairList = ( ('One', '1'),
('Two', '2'),
('Three', '3'));
If that's not possible, can a constant fixed array be initialized with a fixed array:
type
tPairList: array[1..3] of tNamePair;
If that's not possible, can a constant dynamic array be initialized with a record:
tNamePair = record
English: String;
Number: String;
end;
tPairList = array of tNamePair;
if that's not possible can a constant fixed array be initialized with a record:
tNamePair = record
English: String;
Number: String;
end;
tPairList = array[1..3] of tNamePair;
If that's not possible, any suggestions other than just hardwiring assignments in the code, which frankly would have taken me less time than composing this question!