I defined some const strings. and this strings are elements of a const string array. the bring compile error:Constant expression excepted.
how can i do? there are 58 const string arrays in my project.
problem about const array
Does this help: http://www.tsilang.com/delphiglobalizat ... aq.html#11 ?
Best regards,
Igor Siticov.
Igor Siticov.
I using data structures like the below?how can i do
I using data structures like the below:
const
str1 = 'My String constant 1';
str2 = 'My String constant 2';
str3 = 'My String constant 3';
StrArr: array[0..2] of string = (
str1,
str2,
str3
'My String constant 4 ');
const
str1 = 'My String constant 1';
str2 = 'My String constant 2';
str3 = 'My String constant 3';
StrArr: array[0..2] of string = (
str1,
str2,
str3
'My String constant 4 ');