@@ -2067,9 +2067,9 @@ Public Module atcConstituentTables
20672067 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
20682068 'if reporting for some months only
20692069 Dim lDate( 5 ) As Integer
2070- For iValue As Integer = 1 To lTimeseries.numValues
2071- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2072- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2070+ For iValue As Integer = 0 To lTimeseries.numValues
2071+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2072+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
20732073 lTimeseries.Value(iValue) = 0.0
20742074 End If
20752075 Next
@@ -2108,9 +2108,9 @@ Public Module atcConstituentTables
21082108 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
21092109 'if reporting for some months only
21102110 Dim lDate( 5 ) As Integer
2111- For iValue As Integer = 1 To lTimeseries.numValues
2112- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2113- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2111+ For iValue As Integer = 0 To lTimeseries.numValues
2112+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2113+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
21142114 lTimeseries.Value(iValue) = 0.0
21152115 End If
21162116 Next
@@ -2151,9 +2151,9 @@ Public Module atcConstituentTables
21512151 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
21522152 'if reporting for some months only
21532153 Dim lDate( 5 ) As Integer
2154- For iValue As Integer = 1 To ltimeseries.numValues
2155- J2Date(ltimeseries.Dates.Value(iValue), lDate)
2156- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2154+ For iValue As Integer = 0 To ltimeseries.numValues
2155+ J2Date(ltimeseries.Dates.Value(iValue) - 0.001 , lDate)
2156+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
21572157 ltimeseries.Value(iValue) = 0.0
21582158 End If
21592159 Next
@@ -2194,9 +2194,9 @@ Public Module atcConstituentTables
21942194 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
21952195 'if reporting for some months only
21962196 Dim lDate( 5 ) As Integer
2197- For iValue As Integer = 1 To lTimeseries.numValues
2198- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2199- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2197+ For iValue As Integer = 0 To lTimeseries.numValues
2198+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2199+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
22002200 lTimeseries.Value(iValue) = 0.0
22012201 End If
22022202 Next
@@ -2240,9 +2240,9 @@ Public Module atcConstituentTables
22402240 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
22412241 'if reporting for some months only
22422242 Dim lDate( 5 ) As Integer
2243- For iValue As Integer = 1 To lTimeseries.numValues
2244- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2245- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2243+ For iValue As Integer = 0 To lTimeseries.numValues
2244+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2245+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
22462246 lTimeseries.Value(iValue) = 0.0
22472247 End If
22482248 Next
@@ -2285,9 +2285,9 @@ Public Module atcConstituentTables
22852285 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
22862286 'if reporting for some months only
22872287 Dim lDate( 5 ) As Integer
2288- For iValue As Integer = 1 To lTimeseries.numValues
2289- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2290- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2288+ For iValue As Integer = 0 To lTimeseries.numValues
2289+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2290+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
22912291 lTimeseries.Value(iValue) = 0.0
22922292 End If
22932293 Next
@@ -2327,9 +2327,9 @@ Public Module atcConstituentTables
23272327 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
23282328 'if reporting for some months only
23292329 Dim lDate( 5 ) As Integer
2330- For iValue As Integer = 1 To lTimeseries.numValues
2331- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2332- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2330+ For iValue As Integer = 0 To lTimeseries.numValues
2331+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2332+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
23332333 lTimeseries.Value(iValue) = 0.0
23342334 End If
23352335 Next
@@ -2962,9 +2962,9 @@ Public Module atcConstituentTables
29622962 If aReportStartMonth <> 1 Or aReportEndMonth <> 12 Then
29632963 'if reporting for some months only
29642964 Dim lDate( 5 ) As Integer
2965- For iValue As Integer = 1 To lTimeseries.numValues
2966- J2Date(lTimeseries.Dates.Value(iValue), lDate)
2967- If lDate( 1 ) < aReportStartMonth + 1 Or lDate( 1 ) > aReportEndMonth + 1 Then
2965+ For iValue As Integer = 0 To lTimeseries.numValues
2966+ J2Date(lTimeseries.Dates.Value(iValue) - 0.001 , lDate)
2967+ If lDate( 1 ) < aReportStartMonth Or lDate( 1 ) > aReportEndMonth Then
29682968 lTimeseries.Value(iValue) = 0.0
29692969 End If
29702970 Next
0 commit comments