473,386 Members | 1,799 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,386 software developers and data experts.

enumerate iso currency codes

I know this is a property of the RegionInfo class. I figure somewhere in the
framework is the actual enumeration, which I would like to use.

I want to use it to support a Money class I need, along the lines of Fowler,
which would have an attribute of Currency.

Any help much appreciated.
Nov 29 '06 #1
3 7291
"Eric" <ef********@cox.netwrote in message
news:sK*****************@newsfe15.phx...
>I know this is a property of the RegionInfo class. I figure somewhere in
the framework is the actual enumeration, which I would like to use.
Are you asking if there is an enum that represents the different currencies
around the world? I haven't used currencies in any form in dot net but I
would be very suprised if this was an enum. An enum would not be used for
something that is not really that static.

Michael
Nov 29 '06 #2
Unicode Currency Symbols
Format: Four columns separated by 0x0020: #1 [#2] [#3] #4

Column #1 is the Unicode number in hex (0xXXXX)
Column #2 is character displayed by numeric call ('&#xXXXX;')
Column #3 is character displayed by their unicode value ('keyboard')
Column #4 is the Unicode name
Unicode version: 3.2
Unicode Characters Description
------- ------------ -----------
x0000 chars
----- -----
0x0024 [ $ ] [ $ ] DOLLAR SIGN (USA)
0x00A2 [ ¢ ] [ ¢ ] CENT SIGN
0x00A3 [ £ ] [ £ ] POUND SIGN (Great Britain)
0x00A4 [ ¤ ] [ ¤ ] CURRENCY SIGN
0x00A5 [ ¥ ] [ ¥ ] YEN SIGN (Japan)
0x09F2 [ ৲ ] [ ৲ ] BENGALI RUPEE MARK
0x09F3 [ ৳ ] [ ৳ ] BENGALI RUPEE SIGN
0x20A0 [ â‚* ] [ â‚* ] EURO-CURRENCY SIGN (ex ECU, not EURO)
0x20A1 [ â‚¡ ] [ â‚¡ ] COLON SIGN (Costa Rica, El Salvador)
0x20A2 [ â‚¢ ] [ â‚¢ ] CRUZEIRO SIGN (Brazil)
0x20A3 [ â‚£ ] [ â‚£ ] FRENCH FRANC SIGN (France)
0x20A4 [ ₤ ] [ ₤ ] LIRA SIGN (Italy, Turkey)
0x20A5 [ â‚¥ ] [ â‚¥ ] MILL SIGN (USA (1/10 cent))
0x20A6 [ ₦ ] [ ₦ ] NAIRA SIGN (Nigeria)
0x20A7 [ ₧ ] [ ₧ ] PESETA SIGN (Spain)
0x20A8 [ ₨ ] [ ₨ ] RUPEE SIGN (India)
0x20A9 [ â‚© ] [ â‚© ] WON SIGN (Korea)
0x20AA [ ₪ ] [ ₪ ] NEW SHEQEL SIGN (Israel)
0x20AB [ â‚« ] [ â‚« ] DONG SIGN (Vietnam)
0x20AC [ € ] [ € ] EURO SIGN (European Monetary Union)
0x20AD [ â‚* ] [ â‚* ] KIP SIGN (Laos)
0x20AE [ â‚® ] [ â‚® ] TUGRIK SIGN (Mongolia)
0x20AF [ ₯ ] [ ₯ ] DRACHMA SIGN (Greece)
0x20B0 [ â‚° ] [ â‚° ] GERMAN PENNY SIGN
0x20B1 [ ₱ ] [ ₱ ] PESO SIGN
0x0E3F [ ฿ ] [ ฿ ] THAI CURRENCY SYMBOL BAHT
0x17DB [ ៛ ] [ ៛ ] KHMER CURRENCY SYMBOL RIEL

Eric wrote:
I know this is a property of the RegionInfo class. I figure somewhere in the
framework is the actual enumeration, which I would like to use.

I want to use it to support a Money class I need, along the lines of Fowler,
which would have an attribute of Currency.

Any help much appreciated.
Nov 29 '06 #3
RegionInfo ri = new RegionInfo("en-US");
string usIsoCurrencySymbol = ri.ISOCurrencySymbol; <---- usIsoCurrencySymbol
= "USD"

The snippet above shows the property I'm looking for, although I could have
gotten the symbol ("$") and other useful info the same way. I'm starting to
suspect it might be in an xml file somewhere.

Thanks,
Eric

"Michael C" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
"Eric" <ef********@cox.netwrote in message
news:sK*****************@newsfe15.phx...
>>I know this is a property of the RegionInfo class. I figure somewhere in
the framework is the actual enumeration, which I would like to use.

Are you asking if there is an enum that represents the different
currencies around the world? I haven't used currencies in any form in dot
net but I would be very suprised if this was an enum. An enum would not be
used for something that is not really that static.

Michael

Nov 29 '06 #4

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

Similar topics

1
by: Hung Huynh | last post by:
Is there an easy way to change Currency formatting from USD to EUR (use comma as decimals delimiter instead of period)? I'm using Windows 2000 Server/IIS 5.0 in English. I'm serving both USD and...
2
by: Willing 2 Learn | last post by:
I'm still having trouble getting my program to do arithmetic in cents(keeping all #'s) then convert the answer in a format of dollars & cents. The main program should add, subtract, scalar...
3
by: Dalan | last post by:
Is there any code available to address currency rounding problems in Access 97? Apparently, selecting currency type table fields does not resolve the problem. For instance, in my form I have a...
4
by: Mitchell Vincent | last post by:
How is everyone formatting currency with VB.NET? Before I was calling the API function for it, which took the currency symbol from the Windows settings. I've found this to be limited when...
4
by: JotaO | last post by:
Hi! Can anyone tell me where can i find a free control (textbox style) that allows me to input numeric/currency data securelly? TIA JotaO
18
by: Boris Yeltsin | last post by:
OK, I have a database table, it has prices of products in it, like so: ProductPrice MONEY ProductIsoCurrencyCode CHAR(3) Now, both CultureInfo and RegionInfo have...
5
by: Eric | last post by:
Java has this. Anyone know of a .Net equivalent? Thanks, Eric
16
by: xjohnx | last post by:
Hi, I'm hoping someone can help me I am quite new to Javascript and have had to create a programme which converts dollars into euros and vice versa, here is my script which is working var...
2
vivek kushwaha
by: vivek kushwaha | last post by:
Hi guys, I need codes to convert Currency into Words. e.g. 120,500 into "One Lac. Five hundred only." in asp.net with vb.net 1.1. Please if anybody know about it. Reply me. Vivek.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.