[fpc-pascal] type of resourcestrings

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Apr 6 16:36:10 CEST 2005



On Wed, 6 Apr 2005, Marc Santhoff wrote:

> Hi,
>
> when defining resourcestrings the definition looks like this:
>
> 	mystring = 'anything';
>
> A typed definition is not allowed:
>
> 	mystring: AnsiString = 'anything';
>
> gives an error.

It should. A typed definition would imply that you can set it at
runtime, which is not the case. (At least, not without the special API
for it)

>
> How are resourcestrings typed?
>
> I expect them to be short strings or ansi strings if $H+ is set. Is this
> correct?

No. They are always ansistrings.

Michael.




More information about the fpc-pascal mailing list