Regional Settings

Hi All, Is there anyway of reading the Regional and Language Options in the Controls Panel, i.e., the Currency Symbol on the Currency Tab? Cheers

? Use Windows Scripting Host Shell object to read the following registry key: HKCU\Control Panel\International\sCurrency

Any chance of giving a C/SIDE example?

PROCEDURE GetCurrencySymbol() : Text[30] VAR wshShell : 'Windows Script Host Object Model'.WshShell; BEGIN CREATE(wshShell); EXIT(wshShell.RegRead('HKCU\Control Panel\International\sCurrency')); END;

Hi Fritz, That worked a treat! Where can you find out the settings for a RegRead? Cheers David

Hi Dave, If you are looking for a reference on the RegRead method, look here: If you are wondering how to come up with the magic registry keys – that’s almost too deep for words. The registry is like the Dark Forest – easy to get lost, full of strange creatures! When I saw your question on the currency symbol, I remembered that the Win32 platform SDK has a system call named ‘GetLocaleInfo’ that returns the currency symbol. I looked up the reference for that function on msdn, and a link or two away, I found the following reference, that contained the registry key hint: Hope this helps – let me know if I’ve misunderstood your question.