Jump to content

Return IsoCode


Recommended Posts

Hello everybody ^_^

How do i use the class or objet (system.globalization.regioninfo) to return the values of "ISOCurrentSymbol / CurrentSymbol/ ect.." or "ISO Code 4217> EUR" return that all countries contain eur

Is this possible?

URI_MSDN : RegionInfo

Or other solution for my first projet ?

is possible to return all global const for in exe or dll ?

Thanks a lot ;)

Edited by anib

Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR

Link to comment
Share on other sites

  • 11 years later...
6 hours ago, nacerbaaziz said:

because i need to extract all country names using this way

Since you have already raised the thread from the dead, I will also reply here :lol: . (Next time better start a new thread)

Try this :

#include <APILocaleConstants.au3>
#include <WinAPILocale.au3>
#include <Array.au3>

Global $aGeoID = _WinAPI_EnumSystemGeoID()
Global $aGeoFriendlyNames[UBound($aGeoID)][3]
$aGeoFriendlyNames[0][0] = UBound($aGeoID) - 1
For $i = 1 To $aGeoFriendlyNames[0][0]
    $aGeoFriendlyNames[$i][0] = $aGeoID[$i]
    $aGeoFriendlyNames[$i][1] = _WinAPI_GetGeoInfo($aGeoID[$i], $GEO_ISO2)
    $aGeoFriendlyNames[$i][2] = _WinAPI_GetGeoInfo($aGeoID[$i], $GEO_FRIENDLYNAME)
Next
_ArrayDisplay($aGeoFriendlyNames, '$GEO_FRIENDLYNAME', Default, Default, Default, "GeoID |ISO2 |GeoName    " )

 

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...