Digit Substitution

  • Thread starter Ahmad Abu-Raddad
  • Start date
A

Ahmad Abu-Raddad

Hey Guys,

I'm trying to display Arabic digits (Hindi) in a webapplication, I used the
CultureInfo class to change the current culture to Arabic as follows:

Dim oCultureInfo As New Globalization.CultureInfo("ar-QA", True)

Dim oNumberFormatInfo As New Globalization.NumberFormatInfo

System.Threading.Thread.CurrentThread.CurrentCulture = oCultureInfo



unfortunately that did not make the numbers display in Arabic, they are
still being displayed as (1234...).

I checked the regional settings and found out a property called Digit
Substitution that when changed to "National" displays all the numbers in
Arabic just the way I want.

but how can I change the digit substitution property of the current culture
in code using VB.NET?

if anyone help please do.



Thanks in advance

Ahmad Abu-Raddad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top