Sign in Join
FPDoc Onlineexperiment

TStringHash.Add procedure

Member of TStringHashpublicIn unit IniFiles

Add a new value to the hash.

Declaration

pascal
procedure Add(const Key: string; Value: Integer)

Arguments

Key

Key for this value.

Value

Value to add to hash.

Description

Add adds the value Value with name AKey to the list. The behaviour of Add depends on AddReplacesExisting. If if it is False, then the existing value is left unchanged, and an exception is raised. If AddReplacesExisting is True then an existing value is replaced.

Errors

An exception will be raised if the value already exists and AddReplacesExisting is False

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.