[fpc-pascal] localization of constant strings
Marc Santhoff
M.Santhoff at t-online.de
Wed Apr 6 16:41:18 CEST 2005
Hi again,
this does work:
<--->
resourcestring
zet = 'Z';
why = 'Y';
const
z: ansistring = '-z-';
y: ansistring = why;
</--->
and this variant doesn't (Error: Illegal expression):
<--->
resourcestring
zet = 'Z';
why = 'Y';
const
columncount = 2;
titles : ARRAY[0..columncount-1] OF pgchar = (
zet,
why
);
</--->
My problem is I'm using arrays of constant chars a lot in my program.
How can I use them without losing the benefit of resourcestrings?
TIA,
Marc
More information about the fpc-pascal
mailing list