Page 1 of 1

const section

Posted: Thu Feb 19, 2004 4:57 pm
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

Posted: Thu Feb 19, 2004 8:18 pm
by isiticov
Yes, either changed CONST to VAR or add {$J+} at the top of your unit.