[fpc-pascal] localization of constant strings
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Apr 6 16:51:47 CEST 2005
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...
Michael.
More information about the fpc-pascal
mailing list