Page 1 of 1

TrxPower Dec in 1.17

Posted: 18 Apr 2014, 17:41
by PB4FUN
When entering Trx Pwr using my numberic island the dot is not converted to a comma. (Might be considered even as feature instead as bug)
Maybe you should alter the keycode for 1000-seperator to the keycode for decimal separator in the key-up event or make this a overridable setting for those using thousandsseperators for kilo/MegaWatts.

Now for the bug I could call bug instead of feature :
When setting filters for QSO's to display with Trx Power Dec I notice the following :
Trx Power Dec <= 5.000 gives me all QSO's from 0 to 100 W
Trx Power Dec < 5.000 gives me all QSO's from 0 to 100 W
Trx Power Dec <= 5 gives me all QSO's from 0 to 5 W
Trx Power Dec < 5 gives me all QSO's from 0 to 4.999 W
Trx Power Dec = 5.000 gives me no QSO's
Trx Power Dec = 5 gives me all QSO's with 5 W
I did not try out other combinations but I think you know where to look.

Re: TrxPower Dec in 1.17

Posted: 18 Apr 2014, 18:13
by IW3HMH
Usually in search fields you must NOT use thousand separators.
Those searches will be made directly on the database, that doesn't have thousand separators on it.

I'm already working with user language localization to change values to the recognized decimal separator, but in search you should avoid thousand separators.
This is a "drawback" from search, that is flexible to allow you make everything on your queries but must comply to some rules.

Re: TrxPower Dec in 1.17

Posted: 18 Apr 2014, 19:11
by PB4FUN
You mean something like this ?

Code: Select all

        private void numericUpDown1_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '.' || e.KeyChar == ',')
            {
                e.KeyChar = System.Globalization.NumberFormatInfo.CurrentInfo.NumberDecimalSeparator.ToString()[0];
            }
        }
How about an expert mode for the search using real SQL ?

Re: TrxPower Dec in 1.17

Posted: 18 Apr 2014, 19:49
by PB4FUN
Found another one concerning TrxPowerDecimal

Step 1 : Export to Adif (tried 2.0 version)
Step 2 : Import on another PC having an empty log

A QSO with 0.150 W has now 15.000 W

<TX_PWR:4>0,15 <COMMENT:6>0.15 W

Shouldn't the Adif be with dot as decimal separator so its an error in generating Adif ?

Re: TrxPower Dec in 1.17

Posted: 19 Apr 2014, 06:01
by IW3HMH
Yes, i will check for that and release probably an update.
Thanks for reporting