[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TStrings.Values

Value parts of the name-value pairs in the list.

Declaration

Source position: classesh.inc line 791

public property TStrings.Values[Name: string] : string
  read GetValue
  write SetValue;

Description

Values represents the value parts of the name-value pairs in the list.

When reading this property, if there is a name-value pair in the list of strings that has name part Name, then the corresponding value is returned. If there is no such pair, an empty string is returned.

When writing this value, first it is checked whether there exists a name-value pair in the list with name Name. If such a pair is found, it's value part is overwritten with the specified value. If no such pair is found, a new name-value pair is added with the specified Name and value.

Remark:
  1. Names are compared case-insensitively.
  2. Any character, including whitespace, up till the first equal (=) sign in a string is considered part of the name.

See also

TStrings.Names

  

Name parts of the name-value pairs in the list.

TStrings.Strings

  

Indexed access to the strings in the list.

TStrings.Objects

  

Indexed access to the objects associated with the strings in the list.


Documentation generated on: Jun 22 2020