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.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to