chrislukasik
6 years agoContributor
convert a jtable cell to a string
this works to print a cell from a jtable
for (Col=0; Col<Grid["wColumnCount"]; Col++) Log["Message"]("Cell (0, " + Col + ") value: " + Grid["wValue"](0, Col));
the question is: how...
- 6 years ago
if I attempt this
string id = Grid["wValue"](0, 1);
I get
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to class type 'System.String'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.
at AutomatedQA.script.var.op_Implicit(var arg)