[Overview][Types][Classes][Index] Reference for unit 'IniFiles' (#fcl)

TStringHash.Add

Add a new value to the hash

Declaration

Source position: inifiles.pp line 69

public procedure TStringHash.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

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


Documentation generated on: May 14 2021