how to get the countrycode from a delphi program

I need to get the countrycode set by windows 98. How do I do?
thanks
u22990015Asked:
Who is Participating?
 
ILEConnect With a Mentor Commented:
var t:tinifile;
begin
 t:=tinifile.create('win.ini');
 label1.caption:=t.readstring('intl','iCountry',''); {code of the country}
 label2.caption:=t.readstring('intl','sCountry',''); {name of the country}
 t.free;
 end;



100% working solution


another setings in this part of winini from my computer :)


[intl]
iCountry=1
ICurrDigits=2
iCurrency=0
iDate=0
iDigits=2
iLZero=1
iMeasure=1
iNegCurr=0
iTime=0
iTLZero=0
s1159=AM
s2359=PM
sCountry=United States
sCurrency=$
sDate=/
sDecimal=.
sLanguage=enu
sList=,
sLongDate=dddd, MMMM dd, yyyy
sShortDate=dd/MM/yyyy
sThousand=,
sTime=:


0
 
u22990015Author Commented:
thank you very much
0
 
ILECommented:
my plaeasure
0
All Courses

From novice to tech pro — start learning today.