PDA

View Full Version : Decimal separator solution


Opa
04-20-2006, 03:56 AM
When I use TAP I need to change my country settings to US. With the older TAP versions I got an error message when I forgot to do that, but with the new version it's not that obvious and after closing TAP I sometimes forget to put the settings back... I'm sure it sounds familiar to a lot of non US TAP users.

So I made a little program that does change it for me automatically when starting TAP, and changes your settings back when TAP is closed. It does make some registry changes, but nothing irreversible. It just changes the 10.000,00 in a 10,000.00 notation.
If something went wrong, like a computer crash, you can always go back to window's country settings and click the setting you originally had manually.

If you think it could be useful to you you can download it here: To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.

Note: TAP needs to be installed in the default directory (C:\Program Files\The Archery Program).
Copy the file "TAP START.EXE" to C:\Program Files\The Archery Program
Make a shortcut on your desktop to C:\Program Files\The Archery Program\TAP START.EXE and start TAP from that.
It will now change the settings automatically.

For those who want to know exactly what it does:
Before TAP opens it writes the following keys to your registry:
CURRENT USER,Control Panel\International,sThousand,","
CURRENT USER,Control Panel\International,sDecimal,"."
It then starts TAP
When TAP is closed it writes this keys:
CURRENT USER,Control Panel\International,sThousand,"."
CURRENT USER,Control Panel\International,sDecimal,","
Then the program is closed.

I know it's a bit tricky to trust an unknown program that messes with your registry, but maybe someone adventurous :-) will verify that it has no ill effects...

Regards, Opa

TAP
04-20-2006, 01:48 PM
Thank OPA! Awsome little utility.

although I try my best to test different things before release somethings get left out.

I THOUGHT that I had the decimal issue resloved with version 5.7.3 or higher...........

What version do you have?

Opa
04-21-2006, 04:36 AM
Hi Tony

I have 5.7.3

And I must admit, I thought you had it solved too. No more error messages, but when I was playing with the spine of my Cartels I noticed something funny: when you change arrows, like from Triple 600 to 500 or 400, the arrow weight doesn't change. That is, when you use a non US setting. When I switch to the US notation, all is well.
I didn't dig through the whole program to see it there were more glitches like that, but decided on the simple solution, to change the settings before I run TAP and put them back when TAP closes.

Works like a treat, and I'm a happy cusomer..

Regards,

Peter

TAP
04-21-2006, 08:38 AM
Peter-

THANK you for pointing that out! I never really thought about the database......anything in the database will have a Period for decimal. Maybe just a data change to international would clerar that up.....I will look into that.!

Thanks

Tony

Opa
04-22-2006, 08:20 AM
Right... never crossed my mind either: cause when I looked into the database with Access to add the 2006 Merlins I get a comma as the decimal separator. I guess Access changes it automatically according to windows country settings.

Regards, Peter

Tejas Raz
04-22-2006, 02:10 PM
This is interesting! Who'd have thought...

A programmer's job never ends!