Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

ExtPascal with Lazarus: Environment variables (DecimalSeparator, etc)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Osvaldo Filho

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');

Thanks.

Reply by email

Michael Van Canneyt
to Osvaldo Filho
Osvaldo Filho wrote 10 lines
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.

Reply by email