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

Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri

3 Answers  


Hello! i am having two comboboxes.Each having 10 items in it.when i select first item in first combobox,it is not similar in the second combobox.for ex in first combo if it is Hyderabad,in second it should be some chenai or some other item .Write a VBSCRIPT for that?

3 Answers   Tech Mahindra,


WHat is Object Identification and Object Spy?

2 Answers   IBM,


In QTP, What is Global action and Local action?

0 Answers   Virtusa,


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

0 Answers  






what are SetToProperty, SetROProperty,GetToproperty scripting?

2 Answers  


How to use debug tools?

0 Answers  


who will distribute the project modules for testing in testing team ?

2 Answers  


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

0 Answers  


how to get column count in datatable

3 Answers  


I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.

1 Answers   IBM,


why the smart identification is not there in WinRunner

1 Answers   DigiTech,


Categories