delphi定义字符串数组常量

在Delphi中定义字符串数组常量,可以使用类似下面的语法:

const ArrayName: array[0..n] of String = ('Value1', 'Value2', ..., 'Valuen');

其中,「ArrayName」是数组的名称,「n」是数组中元素的数量,「Value1」、「Value2」等是数组中的字符串值。

  •