Is it possible do Declare a constant array that includes another constant array?

后端 未结 4 1651
天涯浪人
天涯浪人 2021-01-21 15:49

I want to do something like this:

const

  MyFirstConstArray: array[0..1] of string = (\'Hi\', \'Foo\');
  MySecondConstArrayWhichIncludesTheFirstOne: array[0..2         


        
4条回答
  •  后悔当初
    2021-01-21 16:36

    I don't think so. You'll have to do it in code. If these are global constants, you can do the initialization in the 'initialization' section of the unit.

提交回复
热议问题