I had this constants in a Delphi 7 program. They are not compiling under Delphi XE.
TYPE
TSingleChar= AnsiChar;
CONST
noData: TSingleChar= '.';
Ambiguity= ['x'];
DNA_Ambig= ['x', noData]+ Ambiguity;
[DCC Error] E2026 Constant expression expected.
- What was changed in XE that my old code does not compile?
- I suppose that the code, as it is, is interpreted as Unicode. Am I correct?
Ambiguity
really is declared asconst
? Are you sure that you do exactly like above in your actual code? – LooseleafAmbiguity = ['Б','В','Г','Ґ','Д','Ђ']
– Tablet