This is really bizarre.
I store a snapshot of all the regional settings when the program is started, to prevent issues if the date format is changed while the program is running. I store a couple of dates in a string using DateToStr and use StrToDate to convert it back later. var FS: TFormatSettings; GetLocaleFormatSettings(LOCALE_SYSTEM_DEFAULT, FS); My default DateDelimiter is "/", and FS.DateDelimiter shows as being "/". If I then change the date delimiter in the Windows Regional Settings to "-", and then test FS.DateDelimiter, it has changed to a "-" !!!! How is this possible?
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe