Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding rows to the DataTable
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Code:
p=datatable.AddSheet ("My").AddParameter("city","New York")

i=datatable.GetSheet ("My").getcurrentrow
msgbox i 'This will give 1 as the current row is 1.

q=datatable.GetSheet ("My").SetNextRow 'This one is getting null value.It should show 2
'but nothing
msgbox q

datatable.getsheet("My").Setcurrentrow(2) 'then i've used this cuz i know my current
'row index is 2
'******** Both code below worked for adding value in run time data sheet.
'datatable.Value("city",3)="Bombay"   '3 is for sheet index  for Sheet name My
Datatable.Getsheet("My").GetParameter("city").Value="Bombay"

Data=datatable("city",3)'getting  current row value from sheet My index 3
msgbox Data
Reply


Messages In This Thread
Adding rows to the DataTable - by bdc - 02-07-2009, 06:56 AM
RE: Adding rows to the DataTable - by bdc - 02-07-2009, 07:10 AM
RE: Adding rows to the DataTable - by newqtp - 02-17-2009, 06:41 AM
RE: Adding rows to the DataTable - by bdc - 02-25-2009, 11:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question adding two conditions into a while statement lotos 4 5,091 11-10-2017, 04:49 AM
Last Post: lotos
  Uft: Adding a property to all ojects into Repository ProTester 0 1,361 06-09-2017, 12:48 AM
Last Post: ProTester
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 2,811 02-09-2015, 08:47 PM
Last Post: arpan
  adding an object to OR seven 1 2,659 02-17-2014, 02:23 PM
Last Post: basanth27
  How to access webtables without adding into Object Repository ramkumarad 7 9,679 12-30-2013, 07:38 PM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)