[fpc-pascal] localization of constant strings
Marc Santhoff
M.Santhoff at t-online.de
Wed Apr 6 17:14:46 CEST 2005
Am Mi, den 06.04.2005 schrieb Michael Van Canneyt um 16:51:
> On Wed, 6 Apr 2005, Marc Santhoff wrote:
>
> > 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?
>
> You cannot. A resource string is not a constant...
Okay, I'll bite the bullet and make all variables of it.
Thank you anyways,
Marc
More information about the fpc-pascal
mailing list