Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Country Code - How can one find it. (http://www.outlookbanter.com/outlook-vba/93650-country-code-how-can-one.html)

Thatch August 12th 09 04:17 AM

Country Code - How can one find it.
 
Does anyone know where the default country code is stored for Outlook i.e. 1
for US, 44 for England?

One of my applications transfers phone numbers to Outlook, however, I ask
the user to set the default country code manually. It would be nice to find
out the country code for the PC (or Outlook) and then set that as the default
on my software. Anyone know where this is stored and how to get to it?

Ken Slovak - [MVP - Outlook] August 12th 09 03:30 PM

Country Code - How can one find it.
 
That information is based on the Windows settings and is stored in the
registry. Google for GetLocaleInfo(), a Win32 API function to see how to get
that information in various programming languages.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Thatch" wrote in message
...
Does anyone know where the default country code is stored for Outlook i.e.
1
for US, 44 for England?

One of my applications transfers phone numbers to Outlook, however, I ask
the user to set the default country code manually. It would be nice to
find
out the country code for the PC (or Outlook) and then set that as the
default
on my software. Anyone know where this is stored and how to get to it?




All times are GMT +1. The time now is 09:18 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com