problem about const array

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
bokaw
Posts: 15
Joined: Fri Mar 23, 2007 1:30 am

problem about const array

Post by bokaw »

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.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Best regards,
Igor Siticov.
bokaw
Posts: 15
Joined: Fri Mar 23, 2007 1:30 am

I using data structures like the below?how can i do

Post by bokaw »

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 ');
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Then you will need either to modify it as desribed in FAQ or to mark this code to skip for TsiLang Expert and add the code to translate the array items manually. Otherwise TsiLang Expert won't be able to handle this.
Best regards,
Igor Siticov.
Post Reply