Currency Symbol Position

Posted by Nareshgoradara under ASP.NET on 5/5/2009 | Views : 3354 | Status : [Member] | Replies : 3
Hi,
I need the position of currency symbol from NumberFormatInfo.
eg. For
Rs-India: ?? 100
Doller-US: $ 100
Turlish: 100 YTL
Arebic: ?.?.?100

So, for Rs-India we are putting currency symbol just before currency value, where as in Turkish after the currency symbol.

So, I need the position , that Currency Symbol is Trailling or Preceding?




Responses

Posted by: Vuyiswamb on: 5/6/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Morning

Here is how its done

http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.aspx

Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Nareshgoradara, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nareshgoradara on: 5/6/2009 [Member] Starter

Up
0
Down
Thanks for your replay,
But using it I am unable to get its position.

Nareshgoradara, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 5/6/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day

NumberFormatInfo.CurrencyPositivePattern and NumberFormatInfo.CurrencyNegativePattern let you set the CurrencySymbol position. The naming is certainly not obvious and it took me some time to find it.


check this
http://msdn.microsoft.com/en-us/library/7x5bacwt(vs.71).aspx


http://www.devexpress.com/Help/?document=XtraEditors/CustomDocument1498.htm&levelup=true

http://my.safaribooksonline.com/0321341384/ch06lev1sec9

Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Nareshgoradara, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response