home *** CD-ROM | disk | FTP | other *** search
- {
- Example on using WINTL.PAS
- }
-
- Uses
- WIntl,
- WinCRT;
-
- Var
- CIR1, CIR2 : CountryInfoRec;
-
- Begin
- {Get the country information from DOS}
- GetDOSCountryInfo(CIR1);
- {Display the information obtained in the CountryInfoRec}
- With CIR1 Do
- Begin
- WriteLn('DOS reports this country info ---> ');
- Write('Current country code is : ',CountryCode);
- WriteLn(' (',CountryAsString(CountryCode,DOS),')');
- WriteLn('Date format code is : ',DateFormat,' (0=US, 1=Europe, 2=Japan)');
- WriteLn('Date uses separator : ',DateSeparator);
- WriteLn('Time format code is : ',TimeFormat,' (0=12h, 1=24h)');
- WriteLn('Time uses separator : ',TimeSeparator);
- WriteLn('Currency symbol is : ',CurrencySymbol);
- WriteLn('Thousand separator is : ',ThousandSeparator);
- WriteLn('Decimal separator is : ',DecimalSeparator);
- WriteLn('Digits after decimal in currency : ',DigitsAfterDecimal);
- WriteLn;
- End;
- {Get the country information from Windows}
- GetWinCountryInfo(CIR2);
- {Display the information obtained in the CountryInfoRec}
- With CIR2 Do
- Begin
- WriteLn('Windows reports this country info ---> ');
- Write('Current country code is : ',CountryCode);
- WriteLn(' (',CountryAsString(CountryCode,WIN),')');
- WriteLn('Date format code is : ',DateFormat,' (0=US, 1=Europe, 2=Japan)');
- WriteLn('Date uses separator : ',DateSeparator);
- WriteLn('Time format code is : ',TimeFormat,' (0=12h, 1=24h)');
- WriteLn('Time uses separator : ',TimeSeparator);
- WriteLn('Currency symbol is : ',CurrencySymbol);
- WriteLn('Thousand separator is : ',ThousandSeparator);
- WriteLn('Decimal separator is : ',DecimalSeparator);
- WriteLn('Digits after decimal in currency : ',DigitsAfterDecimal);
- WriteLn;
- End;
- End.