ShortDateFormat vs FormatSettings.ShortDateFormat?
问题 In trying to get Log4D to compile in XE4, I was seeing [dcc32 Error] Log4D.pas(2139): E2003 Undeclared identifier: 'ShortDateFormat' on this line: SetOption(DateFormatOpt, ShortDateFormat); A bit of googling led me to the solution of changing ShortDateFormat to FormatSettings.ShortDateFormat , which led to the following compiling code on XE4: SetOption(DateFormatOpt, FormatSettings.ShortDateFormat); However, I don't really understand why that fixes things why it's needed to specify