TStringHash.Add¶
Add a new value to the hash.
Declaration¶
Source position: inifiles.pp line 75
public
procedure TStringHash.Add(const Key: string; Value: Integer);
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¶
| Name | Description |
|---|---|
| TStringHash.AddReplacesExisting | Should Add replace existing values or not. |
| TStringHash.Modify | Try to modify an existing value. |
| TStringHash.Remove | Remove a key from the hash. |
| TStringHash.ValueOf | Retrieve value of Key. |