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

Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


Is it a smart choice to use QTP for backend testing?

1 Answers   CTS,


How we know the qtp has used the smart identification process for identification of the object.

4 Answers   IBM,


Cn u please clarify my doubt Where are micTab and micReturn used.Thanx in Advance

2 Answers  


can u write one user defined function for webedit class.

6 Answers   Cap Gemini,






What is Tree view?

2 Answers  


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

0 Answers  


I want to learn QTP Online, where can I get quality training?

15 Answers   CSC,


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

0 Answers  


how will u do database testing in qtp? how will u do the same with descriptive programming?

1 Answers   Ordain Solutions,


Which Databases supports for QTP?

2 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,


Categories