Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can we retrieve ten rows from the data table using

loop concept?

Answer Posted / baba

hello nanda, sreeprasad answer is correct... if you worked
on datatable. you will change settings in test settings in
run tab as run on one iteration only.

then it will take from 1 row to 10 only once.

but he forgot this


Function rcnt(rowcount)

if (rowcount>10) then

for i=1 to 10 step 1

val=datatable.value("column1",dtGlobalSheet)
print "Value of"& i &"row is : "&val
datatable.setnextrow

Next

else

msgbox "rowcount is less than 10, requiement is not _
satisfied"

End If

End Function

rows=datatable.getsheet("Global").getrowcount
msgbox rows

row_cnt=rcnt(rows)
print row_cnt

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi How to retrieve data from web element line by line?

2086


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

1805


Difference between test object and run time object?

1053


How can you pass value one action to another action?

1099


what are the mandatory properties for a tex boxc (scenario?)

2045


What phases are involved in testing an application in qtp?

1048


How many types of actions are there in quicktest professional?

1025


What is difference between Recording time object identification and Run time (Execution) time.

1709


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

2144


Can any body please tell me the steps of keyword driven framework of QTP.

2015


Hi Samrat, Thank u very much, what u said it is right.

1947


How many types of run modes are there in qtp?

1071


How do we handle run-time errors?

1092


How to check bitmap output value?

1241


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2749