[Quantproject-developers] QuantProject/b1_ADT ExtendedDataTable.cs,1.4,1.5
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2004-08-11 21:33:22
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25068/b1_ADT Modified Files: ExtendedDataTable.cs Log Message: Changed implementation of DeleteRows method Index: ExtendedDataTable.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/ExtendedDataTable.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ExtendedDataTable.cs 4 Aug 2004 22:50:40 -0000 1.4 --- ExtendedDataTable.cs 11 Aug 2004 21:33:10 -0000 1.5 *************** *** 54,63 **** public static void DeleteRows(DataTable table, long fromIndex) { ! for(long i = table.Rows.Count - 1;i>=fromIndex; i=table.Rows.Count-1) { ! table.Rows.RemoveAt((int)i); } } - /// <summary> /// Get an array of float corresponding to a column compatible with the float type in a given data table --- 54,71 ---- public static void DeleteRows(DataTable table, long fromIndex) { ! ExtendedDataTable.DeleteRows(table, fromIndex, table.Rows.Count - 1); ! //for(long i = table.Rows.Count - 1;i>=fromIndex; i=table.Rows.Count-1) ! //{ ! //table.Rows.RemoveAt((int)i); ! //} ! } ! ! public static void DeleteRows(DataTable table, long fromIndex, long toIndex) ! { ! for(long i = fromIndex; i <= toIndex; i++) { ! table.Rows.RemoveAt((int)fromIndex); } } /// <summary> /// Get an array of float corresponding to a column compatible with the float type in a given data table |