SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem about const array

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
bokaw



Joined: 23 Mar 2007
Posts: 15

PostPosted: Thu May 17, 2007 4:23 am    Post subject: problem about const array Reply with quote

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.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu May 17, 2007 7:18 am    Post subject: Reply with quote

Does this help: http://www.tsilang.com/delphiglobalizationtool_faq.html#11 ?
Back to top
View user's profile Send private message
bokaw



Joined: 23 Mar 2007
Posts: 15

PostPosted: Fri May 18, 2007 1:42 am    Post subject: I using data structures like the below?how can i do Reply with quote

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 ');
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri May 18, 2007 2:55 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group