Sign in Join
FPDoc Onlineexperiment

TStrings.Values property

Member of TStringspublicIn unit Classes

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

Declaration

pascal
property 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.

  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

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