Storing a set of values in Delphi
- by Hendriksen123
I am trying to store a set of values in delphi, but i want to be able to address them using their name, instead of an assigned number.
For example, an array of 'OldValues' would let me do
OldValue[1] := InflationEdit.Text;
Ideally however, i would like to have a value stored in 'Data.Inflation.OldValue' for example. For each identifier, such as Inflation, there is an OldValue, NewValue and StoredValue. There are about 12 of these identifiers.
Is there some way i could store the values like this? that way i could then do something like:
Data.Inflation.NewValue := Data.Inflation.OldValue;
Data.Inflation.NewValue := InflationEdit.Text;