Jump to content

COUNTRYINFO: Difference between revisions

From EDM2
Anakor (talk | contribs)
New
 
Ak120 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== COUNTRYINFO ==
Country information.
Country information.


=== Type ===
=== Type ===
 
  [[ULONG]]  country
  [[OS2 API:DataType:ULONG|ULONG]]  country
  ULONG  codepage
  [[OS2 API:DataType:ULONG|ULONG]]   codepage
  ULONG  fsDateFmt
  [[OS2 API:DataType:ULONG|ULONG]]   fsDateFmt
  [[CHAR]]    szCurrency[5]
  [[OS2 API:DataType:CHAR|CHAR]]    szCurrency[5]
  CHAR    szThousandsSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szThousandsSeparator[2]
  CHAR    szDecimal[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szDecimal[2]
  CHAR    szDateSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szDateSeparator[2]
  CHAR    szTimeSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szTimeSeparator[2]
  [[UCHAR]]  fsCurrencyFmt
  [[OS2 API:DataType:UCHAR|UCHAR]]  fsCurrencyFmt
  UCHAR  cDecimalPlace
  [[OS2 API:DataType:UCHAR|UCHAR]]   cDecimalPlace
  UCHAR  fsTimeFmt
  [[OS2 API:DataType:UCHAR|UCHAR]]   fsTimeFmt
  [[USHORT]]  abReserved[2]
  [[OS2 API:DataType:USHORT|USHORT]]  abReserved[2]
  CHAR    szDataSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szDataSeparator[2]
  USHORT  abReserved2[5]
  [[OS2 API:DataType:USHORT|USHORT]] abReserved2[5]


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct
   
   
=== Fields ===
=== Fields ===
 
;country:Country code.
country                 Country code.
;codepage:Code page.
codepage               Code page.
;fsDateFmt:Date format.
fsDateFmt               Date format.
:Possible values are shown in the following list:  
                        Possible values are shown in the following list:  
::0 - mm/dd/yy
::1 - dd/mm/yy
::2 - yy/mm/dd
;szCurrency[5]:Currency indicator, null terminated.
;szThousandsSeparator[2]:Thousands separator, null terminated.
;szDecimal[2]:Decimal separator, null terminated.
;szDateSeparator[2]:Date separator, null terminated.
;szTimeSeparator[2]:Time separator, null terminated.
;fsCurrencyFmt:Bit fields for currency format.
:This field contains the following bit fields:
::0 - Placement of the currency indicator.
:::0  currency indicator precedes money value
:::1  currency indicator follows money value
::1 - Number of spaces (0 or 1) between currency indicator and money value.
::2 - When this bit is set, ignore the first two bits; the currency indicator replaces the decimal indicator.
;cDecimalPlace:Binary number of decimal places used in the currency indication.
;fsTimeFmt:Time format for file directory presentation.
:The following values are possible:
::0 - 12 hour with "am" or "pm"
::1 - 24 hour
;abReserved[2]:Reserved; set to 0.
;szDataSeparator[2]:Data list separator, null terminated.
;abReserved2[5]:Reserved; set to 0.


                        0    mm/dd/yy
[[Category:Data type]]
                        1    dd/mm/yy
                        2    yy/mm/dd
szCurrency[5]          Currency indicator, null terminated.
szThousandsSeparator[2] Thousands separator, null terminated.
szDecimal[2]            Decimal separator, null terminated.
szDateSeparator[2]      Date separator, null terminated.
szTimeSeparator[2]      Time separator, null terminated.
fsCurrencyFmt          Bit fields for currency format.
                        This field contains the following bit fields:  
 
                        Bit  Description
 
                        0    Placement of the currency indicator.
                              0  currency indicator precedes money value
                              1  currency indicator follows money value
                        1    Number of spaces (0 or 1) between currency  indicator and money value.
                        2    When this bit is set, ignore the first two bits;  the currency indicator replaces the decimal indicator.
 
cDecimalPlace          Binary number of decimal places used in the currency indication.
fsTimeFmt              Time format for file directory presentation.
                        The following values are possible:
                        0  12 hour with "am" or "pm"
                        1  24 hour
abReserved[2]           Reserved; set to 0.
szDataSeparator[2]      Data list separator, null terminated.
abReserved2[5]         Reserved; set to 0.

Latest revision as of 00:15, 22 January 2021

Country information.

Type

ULONG   country
ULONG   codepage
ULONG   fsDateFmt
CHAR    szCurrency[5]
CHAR    szThousandsSeparator[2]
CHAR    szDecimal[2]
CHAR    szDateSeparator[2]
CHAR    szTimeSeparator[2]
UCHAR   fsCurrencyFmt
UCHAR   cDecimalPlace
UCHAR   fsTimeFmt
USHORT  abReserved[2]
CHAR    szDataSeparator[2]
USHORT  abReserved2[5]

C Declaration Method

typedef struct

Fields

country
Country code.
codepage
Code page.
fsDateFmt
Date format.
Possible values are shown in the following list:
0 - mm/dd/yy
1 - dd/mm/yy
2 - yy/mm/dd
szCurrency[5]
Currency indicator, null terminated.
szThousandsSeparator[2]
Thousands separator, null terminated.
szDecimal[2]
Decimal separator, null terminated.
szDateSeparator[2]
Date separator, null terminated.
szTimeSeparator[2]
Time separator, null terminated.
fsCurrencyFmt
Bit fields for currency format.
This field contains the following bit fields:
0 - Placement of the currency indicator.
0 currency indicator precedes money value
1 currency indicator follows money value
1 - Number of spaces (0 or 1) between currency indicator and money value.
2 - When this bit is set, ignore the first two bits; the currency indicator replaces the decimal indicator.
cDecimalPlace
Binary number of decimal places used in the currency indication.
fsTimeFmt
Time format for file directory presentation.
The following values are possible:
0 - 12 hour with "am" or "pm"
1 - 24 hour
abReserved[2]
Reserved; set to 0.
szDataSeparator[2]
Data list separator, null terminated.
abReserved2[5]
Reserved; set to 0.