Is it possible to mix static and dynamic arrays when creating a multidimensional array and then use that to define a const of that type. The compiler does not appear to have an issue with the following so I assume its legal to mix dynamic and static arrays like this...
TSoftKeyBase = (skEmptyCommandLine, skChannelsSelected);
TSoftKeySet = array of array of String;
TSoftKeys = array[TSoftKeyBase] of TSoftKeySet;
When I try to define a const for this array I keep getting "Ordinal type required" on the inner list of elements. Am I pushing beyond the scope of the language?
const
SOFT_KEYS: TSoftKeys =
[
[
['Select Previous', 'Page', 'Close', 'SC', 'Park', 'MORE >'],
['Output', 'FX', 'Macro', 'Select Active', 'Select Changed', 'MORE >'],
['Cue List', 'Re Cue List', 'Load', 'Inclusive Mode', 'Active Sel Mode', 'MORE >'],
['If', 'View', 'Scroll To', '', '', 'MORE >']
],
[
['Select Previous', 'Last', 'Next', 'Clear Selection','Park', 'MORE >'],
['Down %', 'Up %', 'Home', 'Select Active', 'Select Changed', 'MORE >'],
['Virtual DSC', 'HiLight', 'LoLight', 'Fan', 'Offset', 'MORE >'],
['', '', '', '', '@ ATTs', 'MORE >']
]
];