[Lazarus] German umlauts in component names

Santiago A. svaa at ciberpiula.net
Fri Apr 8 13:40:14 CEST 2016


El 02/04/2016 a las 10:14, Special escribió:
> How can I use names with German Umlauts and 'ß' in the Name Field of
> TButton components? For instance, I try to set MyButton.Name to
> "Schließenbutton" and get an error message "Komponentenname
> Schließenbutton ist kein gültiger Bezeichner".
>
> This happens with Lazarus 1.6 and FPC 3.0.0 under Win 10 (64) and
> under Raspian on a Pi3.
> We have many Delphi Programs with German Umlauts in component names
> and would like to go to Lazarus with them.
> Any hints?
>
> Hans

I didn't know Delphi allowed to use above-127 chars for identifiers or
component names. Since what version?

The short answer: You can't.

I would say that you needn't, component names are internal, for use in
source. Nevertheless, you can use any above-127 chars in captions, that
it is what final user sees and must be localized.

-- 
Saludos

Santi
svaa at ciberpiula.net





More information about the Lazarus mailing list