<p>I have a lot of constants that are somehow related, at some point I need to pair them, something like this:</p>

<pre><code>const
  key1 = '1';
  key2 = '2';
  key3 = '3';

  value1 = 'a';
  value2 = 'b';
  value3 = 'c';
</code></pre>

<p>I want to avoid doing:</p>

<pre><code>if MyValue = key1 then Result := value1;
</code></pre>

<p>I know how to do it with string lists using:</p>

<pre><code>MyStringList.Add(key1 + '=' + value1);
Result := MyStringList.Values[key1];
</code></pre>

<p>But, is there any simpler way to do this?</p>

Yes, assignment can be done this way instead, avoiding manual string concatenation:
```
```
MyStringList.Values[Key1] := Value1;
```
```