TStringHashList.CaseSensitive property
Indicates if case sensitivity is used for hash item keys.
Declaration
property CaseSensitive: Boolean read fCaseSensitive write SetCaseSensitive;Description
CaseSensitive is a
Boolean property which indicates the
case for the key values in hash items. The default value for the property is
set to the argument passed to the Create constructor.
When set to False, key values are converted to their uppercase equivalent when hash values are calculate in the HashOf method. When set to True, the existing case for the key value is used.
The value in CaseSensitive must be set before hash items are added to the List. Setting a new value for the property when Count has a non-zero value causes an EListError Exception to be raised.
CaseSensitive is used in the Find method to ensure that the search uses the same logic employed when the hash item was created.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
