how can we retrieve ten rows from the data table using loop
concept?

Answers were Sorted based on User's Feedback



how can we retrieve ten rows from the data table using loop concept?..

Answer / uday kumar. a

Assume "Column1" is my column name in the Global Data
table, then use this code:
for i=1 to 10
datatable.setcurrentrow(i)
returnvalue=datatable.value("Column1","Global")
msgbox(returnvalue)
next

Is This Answer Correct ?    18 Yes 4 No

how can we retrieve ten rows from the data table using loop concept?..

Answer / arjuncr

rows=datatable.getrowcount
set globalsheet=datatable.getsheet("global")
for i=1 to rows step 1
datatable.set currentrow(i)

prameterize steps

next

it retrives not only ten rows .even more than 100 rows in a
datatable

Is This Answer Correct ?    3 Yes 1 No

how can we retrieve ten rows from the data table using loop concept?..

Answer / srikanth

Assume "Column1" is my column name in the Global Data
table, then use this code:
for i=1 to 10
datatable.setcurrentrow(i)
returnvalue=datatable("Column1","Global")
msgbox(returnvalue)
next

Is This Answer Correct ?    7 Yes 8 No

how can we retrieve ten rows from the data table using loop concept?..

Answer / knag

copycat

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More QTP Interview Questions

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

0 Answers  


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

0 Answers  


Explain quicktest professional testing process?

0 Answers  


By using QTP can we record any log files written by the application which is in execution?

0 Answers   Ordain Solutions,


How to use regular expression in descriptive programming?

0 Answers  


What is the vb script when the url enter into the browser

2 Answers   Satyam,


Can you expect major bugs in Net banking Application?

1 Answers  


Which method do you use to retrieve data from the WebList object?

1 Answers  


How to connect QTP to Testdirector

4 Answers   BirlaSoft, Polaris,


Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?

1 Answers  


How will internal and external links be validated and updated? how often?

0 Answers  


How to find the length of the string in qtp?

0 Answers  


Categories