[fpc-pascal] FormatSettings in library vs application

Jonas Maebe jonas at freepascal.org
Sun Apr 19 20:38:02 CEST 2020

On 19/04/2020 19:11, Graeme Geldenhuys wrote:

> 1) Will this function change the ShortDateFormat for the whole
> application, or is the scope just inside that function?

It will be just that library, unless the library is compiled as a
dynamic package.

> 2) Is the better solution to define a local TFormatSettings, define the
> ShortDateFormat for that record, and then pass that to DateToStr as the
> 2nd parameter?

That would indeed be best.


More information about the fpc-pascal mailing list