TC Changes Viewer 2.50 Final
Moderators: white, Hacker, petermad, Stefan2
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
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
Exactly...
Hmm, how about this function?
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 )
Hmm, how about this function?
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 )
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
2Bluestar
I did some searches and found the function DateSerial, it is aware of local setting and two digits year.
I hope it is work nice.
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
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.
What's new in version 2.00 Beta 2
Added: Better parsing for full TC history file.
Fixed: Minor bugs.
TC Changes Viewer 2.00 Beta 3
What's new in version 2.00 Beta 3
Added: Show date in separate columns (optionally).
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.
- hoppfrosch
- Junior Member
- Posts: 67
- Joined: 2004-10-20, 05:39 UTC
Bug report + Feature suggestions
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
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
Confirmed.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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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.
The first line in the list always show the version number even when it is filtered, but this was broken in beta 3
It is already sorted by date in the history file
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
- hoppfrosch
- Junior Member
- Posts: 67
- Joined: 2004-10-20, 05:39 UTC
Thx for your fast fix ..
One more idea/feature request:
Introduction of a "Quick Search" feature: Typing for example "USB" filters out all lines containig "USB" on the fly ...
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: The first line in the list always show the version number even when it is filtered, but this was broken in beta 3
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.ts4242 wrote:hoppfrosch wrote:* Make columns sortable- especially helpful for date column ...
It is already sorted by date in the history file
One more idea/feature request:
Introduction of a "Quick Search" feature: Typing for example "USB" filters out all lines containig "USB" on the fly ...
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.
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.