[fpc-pascal]TStringList.indexOf (case-sensitivity)

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Aug 27 09:39:10 CEST 2003


On Wed, 27 Aug 2003, James Mills wrote:

> Hi,
>
> Is TStringList.indexOf case sensitive or insensitive ?
> TStrings.indexOf is case insensitive, but TStringList.indexOf overrides
> the TStrings.indexOf implementation accoriding to the documentation.

It is case insensitive, but this was changed recently for Delphi
compatibility.
Older versions are case sensitive. Here are the relevant log entries:

revision 1.15
date: 2003/05/29 23:13:57;  author: michael;  state: Exp;  lines: +5 -2
fixed case insensitivity of TStrings.IndexOf
----------------------------
revision 1.14
date: 2002/12/10 21:05:44;  author: michael;  state: Exp;  lines: +12 -5
+ IndexOfName is case insensitive
----------------------------

Michael.





More information about the fpc-pascal mailing list