Re: [fpc-pascal] FormatSettings in library vs application

2020-04-19 Thread Luca Olivetti
El 19/4/20 a les 19:11, Graeme Geldenhuys ha escrit: 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? You could also use FormatDateTime Bye -- Luca __

Re: [fpc-pascal] FormatSettings in library vs application

2020-04-19 Thread Jonas Maebe
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 loca