Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select imported rows from localdatatabel(runtime sheet)
#2
Not Solved
Hi Uma,

Ur code is fine, bt it needs slight modification.

U need to incremet the row to point to the next row. So u will have to use a row counter. Ur code shloud be something like this...

Code:
intRowNo=1  'Initialize a row counter
For x = 1 to DataTable.GetRowCount
print x
'I am adding a sheet in my local datatable.
DataTable.AddSheet("DinInfo")
'Importing values from excel sheet,
DataTable.ImportSheet "C:\LCMan.xls","MyLi-DFa","DinInfo"
Datatable.GetSheet("DinInfo").SetCurrentRow intRowNo  'Point the focus to the current row using the counter
'I parmeterized the column:
DResut=(DataTable("In_Din","DinInfo"))
intRowNo=intRowNo+1  'increment the counter
print Dresult
Next

I hope this would solve ur problem..

Regards,
Ankesh
Reply


Messages In This Thread
RE: How to select imported rows from localdatatabel(runtime sheet) - by Ankesh - 10-24-2011, 11:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple rows of test data Bhuvana 0 1,341 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Adding data into rows that add dynamically with setcelldata azar81 4 5,936 04-13-2015, 05:24 PM
Last Post: vidya2k2
  Excel operation - to find usedrange of rows & col pooja 1 9,714 02-19-2015, 04:06 AM
Last Post: supputuri
  how to count rows and columns in csv file. venkatesh9032 1 2,812 02-18-2014, 01:28 AM
Last Post: supputuri
  UFT 11.52 - How to select multiple rows in webtable UFT_Tester 0 6,242 09-12-2013, 09:36 PM
Last Post: UFT_Tester

Forum Jump:


Users browsing this thread: 1 Guest(s)