Thanks a lot Ken.
With your suggestion i was able to get it running.
IWorkspace pws = clsGDBWorkSpaceManager.openGDBWorkSpace(clsGDBWorkSpaceManager.GDBType.FileGDB, pth, fileNm, 0);
ITable inTbl = clsGDBWorkSpaceManager.openTable("Table1", pws); //ITable outTbl = clsGDBWorkSpaceManager.openTable("Table2", pws); IField f1 = inTbl.Fields.get_Field(inTbl.FindField("F1")); IField f2 = inTbl.Fields.get_Field(inTbl.FindField("F2"));
Geoprocessor GP = new Geoprocessor();
ESRI.ArcGIS.AnalysisTools.Statistics s = new Statistics();
s.in_table = @"D:\FDOTwork\QCEW_DataWork\Apps\Data\q1.gdb\Table1"; s.out_table = @"D:\FDOTwork\QCEW_DataWork\Apps\Data\q1.gdb\Table1_Statistics";
s.case_field = "F1";
s.statistics_fields = "F2 SUM;F3 SUM"; GP.Execute(s, null);
No where in their(ESRI) poor quality documentation, did they mention the input param "object inoutTableName" is actually a string or the field names should be semi colon separated. How are we supposed to know all these ?
anyway thanks for taking the time to help me out.
capton. |