Hi, TStrings has a property property Values[const Name: string]: string read GetValue write SetValue; The setter is defined as: procedure SetValue(const Name, Value: string); Note that both arguments are 'const' When adding a new property, and pressing 'CTRL-C', the IDE adds the new property, but also insists on adding a new SetValue: procedure SetValue(const Name: string; AValue: string); Note the missing const on the second parameter. It does this of course not only for TStrings, but for all such properties. Michael. -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Annoying code completion failure
Michael Van Canneyt via lazarus Sat, 02 Nov 2019 03:24:16 -0700
- [Lazarus] Annoying code completion failure Michael Van Canneyt via lazarus
- Re: [Lazarus] Annoying code completio... Ondrej Pokorny via lazarus
- Re: [Lazarus] Annoying code compl... Sven Barth via lazarus
- Re: [Lazarus] Annoying code c... Ondrej Pokorny via lazarus
- Re: [Lazarus] Annoying co... Sven Barth via lazarus
- Re: [Lazarus] Annoyi... Ondrej Pokorny via lazarus
- Re: [Lazarus] An... Juha Manninen via lazarus
- Re: [Lazarus] Annoying co... Sven Barth via lazarus