473,414 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Determining Measurement Units

Hi

Is it possible for a VB 2003 app to determine the appropriate measurement
units for the user's location? For example, I would like to make my app
default to using miles if the user is in the UK, but instead use kilometres
for NZ. Or is this type of information not stored in Windows' regional
settings?

Thanks
Chris

Nov 20 '05 #1
7 1311
>
Is it possible for a VB 2003 app to determine the appropriate measurement
units for the user's location? For example, I would like to make my app
default to using miles if the user is in the UK, but instead use kilometres for NZ. Or is this type of information not stored in Windows' regional
settings?


Miles in the UK is that not only for old cars?

That old car feature is as far as I know not in the local settings.

:-)

Have a look at globalization I thought it was in there (I am not sure but
have a look yourself)

Maybe this is a nice starting point to start with it
http://msdn.microsoft.com/library/de...e_concepts.asp

I hope this helps?

Cor
Nov 20 '05 #2
Apparently they still use miles there, as I learned a few months ago. I was
amazed because they seem to use metric for everything else!

Chris

On 19/7/04 7:27 PM, in article uU*************@TK2MSFTNGP10.phx.gbl, "Cor
Ligthert" <no**********@planet.nl> wrote:

Is it possible for a VB 2003 app to determine the appropriate measurement
units for the user's location? For example, I would like to make my app
default to using miles if the user is in the UK, but instead use

kilometres
for NZ. Or is this type of information not stored in Windows' regional
settings?


Miles in the UK is that not only for old cars?

That old car feature is as far as I know not in the local settings.

:-)

Have a look at globalization I thought it was in there (I am not sure but
have a look yourself)

Maybe this is a nice starting point to start with it
http://msdn.microsoft.com/library/de.../cptutorials/h
tml/common_resource_concepts.asp

I hope this helps?

Cor


Nov 20 '05 #3
Yes we do use miles. So does America and so does Sweden ( although a swedish
mile is longer )

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"Chris Mahoney" <ch***@nzweb.net> wrote in message
news:BD21D648.332%ch***@nzweb.net...
Apparently they still use miles there, as I learned a few months ago. I was amazed because they seem to use metric for everything else!

Chris

On 19/7/04 7:27 PM, in article uU*************@TK2MSFTNGP10.phx.gbl, "Cor
Ligthert" <no**********@planet.nl> wrote:

Is it possible for a VB 2003 app to determine the appropriate measurement units for the user's location? For example, I would like to make my app
default to using miles if the user is in the UK, but instead use

kilometres
for NZ. Or is this type of information not stored in Windows' regional
settings?


Miles in the UK is that not only for old cars?

That old car feature is as far as I know not in the local settings.

:-)

Have a look at globalization I thought it was in there (I am not sure but have a look yourself)

Maybe this is a nice starting point to start with it
http://msdn.microsoft.com/library/de.../cptutorials/h tml/common_resource_concepts.asp

I hope this helps?

Cor

Nov 20 '05 #4
Hi Terry,
Yes we do use miles. So does America and so does Sweden ( although a swedish mile is longer )


I see now that it is on the road even for modern cars still miles as you
said in the UK.

Are you sure of that miles in Sweden, the driving at the right side of the
road as well already for a long time in Sweden, see this chart

http://www.home.zonnet.nl/c.kampfraath/speedseu.htm

or this one to be sure it is UK

http://www.auto-europe.co.uk/guides/...en_driving.cfm
Cor
Nov 20 '05 #5
Hi Terry,

Before you read the message before as not intended, I was not doubt after
your message about the UK.

:-)

Cor
Hi Terry,
Yes we do use miles. So does America and so does Sweden ( although a

swedish
mile is longer )


I see now that it is on the road even for modern cars still miles as you
said in the UK.

Are you sure of that miles in Sweden, the driving at the right side of the
road as well already for a long time in Sweden, see this chart

http://www.home.zonnet.nl/c.kampfraath/speedseu.htm

or this one to be sure it is UK

http://www.auto-europe.co.uk/guides/...en_driving.cfm
Cor

Nov 20 '05 #6
We still use miles because our government is too tight to change all the
signs in the country...
(and it's hard enough to teach children what a mile is, let alone how to
convert between the two).
For a small-ish island country, we do have an incredibly stupidly high
amount of roads and road signs!!
______________________________
The Grim Reaper

"Chris Mahoney" <ch***@nzweb.net> wrote in message
news:BD21D648.332%ch***@nzweb.net...
Apparently they still use miles there, as I learned a few months ago. I was amazed because they seem to use metric for everything else!

Chris

On 19/7/04 7:27 PM, in article uU*************@TK2MSFTNGP10.phx.gbl, "Cor
Ligthert" <no**********@planet.nl> wrote:

Is it possible for a VB 2003 app to determine the appropriate measurement units for the user's location? For example, I would like to make my app
default to using miles if the user is in the UK, but instead use

kilometres
for NZ. Or is this type of information not stored in Windows' regional
settings?


Miles in the UK is that not only for old cars?

That old car feature is as far as I know not in the local settings.

:-)

Have a look at globalization I thought it was in there (I am not sure but have a look yourself)

Maybe this is a nice starting point to start with it
http://msdn.microsoft.com/library/de.../cptutorials/h tml/common_resource_concepts.asp

I hope this helps?

Cor

Nov 20 '05 #7
guy
Miles are true metric:-
1000 paces with each Roman soldiers foot :-)
thats 2000 in total:-)

guy
"The Grim Reaper" wrote:
We still use miles because our government is too tight to change all the
signs in the country...
(and it's hard enough to teach children what a mile is, let alone how to
convert between the two).
For a small-ish island country, we do have an incredibly stupidly high
amount of roads and road signs!!
______________________________
The Grim Reaper

"Chris Mahoney" <ch***@nzweb.net> wrote in message
news:BD21D648.332%ch***@nzweb.net...
Apparently they still use miles there, as I learned a few months ago. I

was
amazed because they seem to use metric for everything else!

Chris

On 19/7/04 7:27 PM, in article uU*************@TK2MSFTNGP10.phx.gbl, "Cor
Ligthert" <no**********@planet.nl> wrote:
>
> Is it possible for a VB 2003 app to determine the appropriate measurement> units for the user's location? For example, I would like to make my app
> default to using miles if the user is in the UK, but instead use
kilometres
> for NZ. Or is this type of information not stored in Windows' regional
> settings?

Miles in the UK is that not only for old cars?

That old car feature is as far as I know not in the local settings.

:-)

Have a look at globalization I thought it was in there (I am not sure but have a look yourself)

Maybe this is a nice starting point to start with it
http://msdn.microsoft.com/library/de.../cptutorials/h tml/common_resource_concepts.asp

I hope this helps?

Cor


Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Peter Hansen | last post by:
I would like to determine the "actual" elapsed time of an operation which could take place during a time change, in a platform-independent manner (at least across Linux/Windows machines). Using...
0
by: Alex Vinokur | last post by:
=================================== ------------- Sorting ------------- Comparative performance measurement =================================== Testsuite : Comparing Function Objects to...
5
by: Javaman59 | last post by:
I just saw an interesting identifier in a C# book I'm reading... double dollarsPerHead This jumped out at me, as it is not common to put units in an identifer. We don't see...
2
by: TheSeeker | last post by:
Hi, As part of a larger project, I am trying to use the GNU Units program to provide unit conversions between quantities. My first iteration, which worked OK, was to simply use units as a...
3
by: Jack Russell | last post by:
How can I find out what the current measurement units (US or metric) setting is (Control panel, regional settings, advanced). I can get things like the decimal separator but cannot find this one ...
18
by: Erich Meier | last post by:
Hello there, is there any way to set the size of images or table cells in HTML not by pixels but by inches or in millimetres? The problem behind this is that you never know what kind of output...
4
by: Paul Rubin | last post by:
I'm sure this has been done before, but it just struck my fancy, an example of Python's "emulating numeric types", inspired by the old Unix "units" utility, and the Frink language. The language...
18
by: kwikius | last post by:
Well lads :-)... looking at your Boost Units library the impression I get is that you got your library into boost Before writing anything much apart from some documentation, which was AFAICS even...
3
by: kr151080 | last post by:
I need some help with a Measurement Program I Wrote.....I have this code as the main workings of my program: import java.util.*; public class Measurement{ { static Scanner console = new...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.