[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Statisti
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2008-08-15 03:53:19
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/StatisticsSummaryRows In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15468/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/StatisticsSummaryRows Modified Files: AverageReturnOnDayOfWeekWithOpenPositions.cs Log Message: Added try-catch block for avoiding run time error if no returns are available for a specific day of the week. Index: AverageReturnOnDayOfWeekWithOpenPositions.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/StatisticsSummaryRows/AverageReturnOnDayOfWeekWithOpenPositions.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AverageReturnOnDayOfWeekWithOpenPositions.cs 25 Apr 2008 17:11:41 -0000 1.1 --- AverageReturnOnDayOfWeekWithOpenPositions.cs 14 Aug 2008 21:36:09 -0000 1.2 *************** *** 100,104 **** } } ! this.rowValue = this.getRowValue(totalNumberOfSpecificDayOfWeek, sumOfReturnsOnSpecificDayOfWeek); } } --- 100,111 ---- } } ! try ! { ! this.rowValue = this.getRowValue(totalNumberOfSpecificDayOfWeek, sumOfReturnsOnSpecificDayOfWeek); ! } ! catch (Exception ex) ! { ! ex = ex; // to avoid compilation warning; ! } } } |