Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-05

Warning: TStrings.IndexOf() behaviour changed.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi,

A warning:

For those using the Classes unit from the FCL. There has been a relatively important change in the behaviour of the TStrings class. The IndexOf() method is from now on case insensitive, as is it in Delphi. Till now it was case sensitive. The IndexOfName() method has been case insensitive from the very start of the implementation, and has not been changed.

As no-one has complained about this incompatibility before, this warning may not be necessary, but it was pointed out to me that this change may impact quite some code and that users should know about it.

You have been warned ! :)

Michael.

Reply by email