Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Value to DataTable Column
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
I have written a code like

Code:
DataTable.Value("A", 1)=6

Iam getting error saying that DataTable.Value operation failed. The <A> column does not exist.

Can any body please help me to solve this

Thanks in advance
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
For some reason it doesn't recognize Column "A" when there is no row active.you can write some data in row "one" of data table and then click row "two" and then delete the content in row "one".The row "one" is still active after deleting the content from row "one".Now try the below code and it works as expected
Code:
DataTable.Value("A", 1)=6
Alternatively, you can use the below code without any work around
Code:
DataTable.GlobalSheet.AddParameter "A",6

Regards,
Ravi
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,499 05-30-2017, 12:17 AM
Last Post: Vichu M J
  Adding negative amount in webedit Rose 1 1,994 06-30-2016, 09:34 PM
Last Post: babu123
  [UFT] Get column name from SfwObject felino 0 2,895 12-02-2015, 04:07 PM
Last Post: felino
  AddParameter method does not add in first column of datatable alpha1 4 5,305 07-14-2015, 12:44 AM
Last Post: supputuri
  Adding data into rows that add dynamically with setcelldata azar81 4 5,640 04-13-2015, 05:24 PM
Last Post: vidya2k2

Forum Jump:


Users browsing this thread: 1 Guest(s)