Hi
In one of my Applocation. I need to drag a column and check that the data in the swfTable is sorted accordingly. The Code used is SwfWindow("Accounting Detail").SwfTable("ultraGrid1").SetGroupByColumns "0:"&vColumnNamewhere VCoulmnName = "ArmId". I wnat to fetch the data in the column. the code is as follows:
SwfWindow("Accounting Detail").SwfTable("ultraGrid1").SetGroupByColumns "0:"&vColumnNamevRowCount = SwfWindow( "Accounting Detail").SwfTable( "ultraGrid1").Object.Rows.Count
For i =0 to vRowCount-1 vTemp = SwfWindow("Accounting Detail").SwfTable("ultraGrid1").GetCellData(cstr(i),0) Msgbox vTempNext
When I try to execute the above code, it gives me an "Object Reference not set to an instance of the object". Could anyone let me know how can I validate the Drag Funcationality.
Which action is giving you the error? The SetGroupByColumns, the Object.Rows.Count, or the GetCellData? If it's the GetCellData what is the value of i and vRowCount when it crashes?
Also out of curiosity what version of TestAdvantage are you using?