Where did EraNames go to Delphi XE5?

The SysUtils block (System.SysUtils) no longer has EraNames or FormatSettings.EraNames . What is his replacement and where did she go?

i.e:

  for I := Low(SysUtils.EraNames) to High(SysUtils.EraNames) do begin .. end; 
+8
delphi delphi-xe5
source share
1 answer

I answer my question because I thought this could help someone.

Use FormatSettings.EraInfo[x].EraName and other properties of the EraInfo entry.

FormatSettings now contains an array of EraInfo entries.

The for loop can be written:

  for I := Low(FormatSettings.EraInfo) to High(FormatSettings.EraInfo) do begin ... end; 
+9
source share

All Articles