TC Changes Viewer 2.50 Final

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

User avatar
ts4242
Power Member
Power Member
Posts: 2062
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2011-10-26, 11:52 UTC

2Bluestar

The problem is that, Hungarian uses "yyyy. MMMM d." for long date format while "history.txt" uses "dd.mm.yy", i have fixed the year problem by adding the century before pass the date to the VB6 function FormatDateTime, but it seems that function doesn't distinguish between day and month if the day is <= 12

I have to find another solution :roll:

User avatar
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar » 2011-10-26, 15:52 UTC

Exactly...

Hmm, how about this function? :roll:

I wrote it this afternoon in VB2010 and works fine there, it should work with other regional settings too...
(maybe there's a much simpler way, however it was the one which came into my mind :D)

Code: Select all

    Private Function GetCorrectDate(ByVal Input As String, ByVal Format As DateFormat) As String

        Dim DateArray() As String = Split(Input, ".")

        ' Fix the year tag
        If (DateArray(2) > 92) And (DateArray(2) < 99) Then
            DateArray(2) = "19" + DateArray(2)
        ElseIf DateArray(2) < 1992 Then
            DateArray(2) = "20" + DateArray(2)
        End If

        Dim RealDate As New Date(DateArray(2), DateArray(1), DateArray(0))
        Return FormatDateTime(RealDate, Format)

    End Function

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        LabelDate.Text = GetCorrectDate(TextBox1.Text, DateFormat.LongDate)
    End Sub
» Developer of Total Updater & extDir utility.

User avatar
ts4242
Power Member
Power Member
Posts: 2062
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2011-10-26, 16:58 UTC

2Bluestar

I did some searches and found the function DateSerial, it is aware of local setting and two digits year.

Code: Select all

Private Function GetCorrectDate(ByVal Input As String, ByVal Format As DateFormat) As String

    Dim DateArray() As String = Split(Input, ".")

    Return FormatDateTime(DateSerial(DateArray(2), DateArray(1), DateArray(0)), Format)

End Function
I hope it is work nice.

User avatar
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar » 2011-10-27, 09:10 UTC

@ts4242: yes, it works like a charm with DateSerial too :)
» Developer of Total Updater & extDir utility.

User avatar
ts4242
Power Member
Power Member
Posts: 2062
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2011-10-30, 20:28 UTC

TC Changes Viewer 2.00 Beta 2

What's new in version 2.00 Beta 2

Added: Better parsing for full TC history file.
Fixed: Minor bugs.

User avatar
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar » 2011-10-31, 21:07 UTC

Nice, thanks for the new version. Date problem is solved now.
» Developer of Total Updater & extDir utility.

User avatar
ts4242
Power Member
Power Member
Posts: 2062
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2011-11-07, 01:23 UTC

TC Changes Viewer 2.00 Beta 3

What's new in version 2.00 Beta 3

Added: Show date in separate columns (optionally).
Last edited by ts4242 on 2011-11-07, 17:49 UTC, edited 1 time in total.

User avatar
hoppfrosch
Junior Member
Junior Member
Posts: 67
Joined: 2004-10-20, 05:39 UTC

Bug report + Feature suggestions

Post by *hoppfrosch » 2011-11-07, 06:40 UTC

Bug:
If there are no items with [+] for a certain version (for example TC 7.56a final) and filtering for [+] is enabled, I got an error "Runtimeerror 35600: Index boundaries ...".
I think you do not handle zero sized lists correctly.

Suggestions:

* Introduce a column with version (beside date) when feature was introduced/bug was fixed. With this you can easily identify for example in a [+]-filtered list, when this feature was introduced ....
* Make columns sortable- especially helpful for date column ...

Using TC ChangesViewer 2.00 Beta 3

User avatar
petermad
Power Member
Power Member
Posts: 8405
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2011-11-07, 23:31 UTC

If there are no items with [+] for a certain version (for example TC 7.56a final) and filtering for [+] is enabled, I got an error "Runtimeerror 35600: Index boundaries
Confirmed.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b4 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
ts4242
Power Member
Power Member
Posts: 2062
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2011-11-08, 05:03 UTC

Hot fix
TC Changes Viewer 2.00 Beta 4

What's new in version 2.00 Beta 4

Fixed: Error occurs if the changes list is empty after applying filter.
hoppfrosch wrote:* Introduce a column with version (beside date) when feature was introduced/bug was fixed. With this you can easily identify for example in a [+]-filtered list, when this feature was introduced ....


The first line in the list always show the version number even when it is filtered, but this was broken in beta 3
hoppfrosch wrote:* Make columns sortable- especially helpful for date column ...

It is already sorted by date in the history file :wink:

User avatar
hoppfrosch
Junior Member
Junior Member
Posts: 67
Joined: 2004-10-20, 05:39 UTC

Post by *hoppfrosch » 2011-11-08, 06:44 UTC

Thx for your fast fix ..
ts4242 wrote: The first line in the list always show the version number even when it is filtered, but this was broken in beta 3
Not quite true: if you select the version "all" to display - you cannot identify in which version the feature was introduced/bug was fixed. Therefore my suggestion for version column ... Might be nice also to see the version of currently selected line in the status bat as well ...
ts4242 wrote:
hoppfrosch wrote:* Make columns sortable- especially helpful for date column ...

It is already sorted by date in the history file :wink:
You're right - no really need to sort for other columns than date (which "corresponds with version" - each date belongs to a dedicated version). If the list is always sorted by date ... the order is clear. But if you want to sort in "real chronological order" instead of reverse chronological order, a sort possibility might be useful anyway.

One more idea/feature request:
Introduction of a "Quick Search" feature: Typing for example "USB" filters out all lines containig "USB" on the fly ...

User avatar
ts4242
Power Member
Power Member
Posts: 2062
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 » 2011-11-11, 05:48 UTC

TC Changes Viewer 2.00 Beta 5

What's new in version 2.00 Beta 5

Added: When "All" version selected, highlight the version of the selected change.
Added: New toolbar button to show the changes list in reverse order.

User avatar
EricB
Senior Member
Senior Member
Posts: 333
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB » 2011-11-11, 15:00 UTC

Hi ts4242,

The beta5 does not show any changes on my system, whereas the beta4 works fine. Only the tree of versions is shown, and it does not matter if I select All changes, Additions or Fixes.

Tested with History.txt of TC8Beta9.

Regards, EricB
Regards, EricB

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3356
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp » 2011-11-11, 15:26 UTC

Works fine here with TC8 Beta9 under W7 x64

User avatar
EricB
Senior Member
Senior Member
Posts: 333
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB » 2011-11-11, 15:40 UTC

Odd, after first loading the TC8beta8 history file and afterwards the beta9 file everything works now.
Maybe an ini setting that caused a quirk. Well, ignore my earlier report then, problem seems to be solved.

Regards, EricB

Post Reply