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

how qtp handles customised object

1 Answers  


What is diff. between ordinal identifier INDEX and Location?

3 Answers  


How can we call Winrunner functions from QTP?

1 Answers  


QTP script is not working on other's machine..

0 Answers  


Explain step generator in qtp?

0 Answers  






Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script used in QTP? PLZ

3 Answers  


How to handle the exceptions using the recovery scenario manager in qtp?

0 Answers  


Can anybody post some real time scenario in qtp? please its very urgent.

0 Answers   Kanbay,


I had created the new virtual objects for web application buttons. how to add those virtual objects into object repository. Previously i had used Gui map in winrunner for capturing virtual objects for web application. Please help me regarding this. need your answer quickly

1 Answers  


Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)

2 Answers  


When u r running a script , if u get a popup window that describing that u have received a mail to your outlook application. so to avoid the interference of the popup window , which recovery scenario(popup,object state,application hang,system crash) would u use ?

4 Answers   Accenture,


what is the extension for the test version of the script?

5 Answers   TCS,


Categories