const section

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
b_asi
Posts: 4
Joined: Thu Feb 19, 2004 4:33 pm

const section

Post by b_asi »

Hello,

I try to replace a strings in const section as result tsiLang add source code
at TMainForm.UpdateStrings procedure.
for example
const_noMoreInputdoc := siLang1.GetTextOrDefault('strconst_noMoreInputdoc');
const__DocSave := siLang1.GetTextOrDefault('strconst__DocSave');

But when i try to compile the project the delphi wrote
can not assign value to const parameter (and delphi compiler right)

What should i fix ? should i remove variable from the const section ?? :cry:


thank you
Asi
Asi
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Yes, either changed CONST to VAR or add {$J+} at the top of your unit.
Post Reply