[Lazarus] ExtPascal with Lazarus: Environment variables (DecimalSeparator, etc)

Michael Van Canneyt michael at freepascal.org
Tue Dec 15 15:56:29 CET 2009



On Tue, 15 Dec 2009, Osvaldo Filho wrote:

> How can do that with extpascal?
>
>  Set time format to use 24 not 12 am/pm;
>
>  ShortDateFormat := 'dd/mm/yyyy';
>  DateSeparator := '/';
>  DecimalSeparator := ',';
>  ThousandSeparator := '.';
>  TranslateUnitResourceStrings('LCLStrConsts',
> ExtractFileDir(Application.ExeName)+ '/lclstrconsts.pb.po');


ShortTimeFormat:='hh:nn';

on unix, you can include the 'clocale'  unit, this will read the settings
from the system settings.

Michael.




More information about the Lazarus mailing list