log4d

ShortDateFormat vs FormatSettings.ShortDateFormat?

旧城冷巷雨未停 提交于 2020-01-13 19:48:06
问题 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