Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Value to DataTable Column
#1
Not Solved
Hi I have written like this
Code:
DataTable.Value "A", 1 = 6
but it is giving error like DataTable.Value operation failed. <A> does not exist.
Can any body please help me on this
Thanks in advance
Reply
#2
Not Solved
Hi kriday,
Correct syntax for using value property is
DataTable.Value (ParameterID[,SheetID])
--It retrieves or sets the value of the cell in the specified parameer and the current row of the run-time data table.

Ex: DataTable.Value ("ColumnName","Global")
Here, ColoumnName is the name of the column in data table
and Global is the sheet name.

Hope it vl work....!

Regards,
Sibi C A
Reply
#3
Not Solved
Hi

I tried the same thing
(i.e DataTable.Value("A", "Global")=6)
getting same error. Is there any way to add value to datatable

Thanks in advance
Kriday
Reply
#4
Not Solved
Hi,

For me, DataTable.Value("A", "Global")=6 is working fine...
what error you are getting?
Did you create any column with column name "A"? If not just create one and run the above code.Then you won't get that error again.Because by default in datatable first column name is "A".

Reagards,
Sibi C A
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)