The unit SysUtils (System.SysUtils) no longer has an EraNames
or FormatSettings.EraNames
. What is its replacement and where did it go?
i.e:
for I := Low(SysUtils.EraNames) to High(SysUtils.EraNames) do
begin
..
end;
I'm answering my own question because I thought this might help someone.
Use FormatSettings.EraInfo[x].EraName
and other properties of the EraInfo record.
The FormatSettings now holds an Array of EraInfo Records.
The for loop could be written:
for I := Low(FormatSettings.EraInfo) to High(FormatSettings.EraInfo) do
begin
...
end;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With