?
Solved

how to get the countrycode from a delphi program

Posted on 2003-03-20
3
Medium Priority
?
175 Views
Last Modified: 2010-04-04
I need to get the countrycode set by windows 98. How do I do?
thanks
0
Comment
Question by:u22990015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
ILE earned 300 total points
ID: 8178178
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
 

Author Comment

by:u22990015
ID: 8178250
thank you very much
0
 
LVL 3

Expert Comment

by:ILE
ID: 8178338
my plaeasure
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question