How to add multiple values in rows, under a single column of
a run time datatable?

Answers were Sorted based on User's Feedback



How to add multiple values in rows, under a single column of a run time datatable?..

Answer / uday

datatable.GetSheet(1)
For i=1 to 5
datatable.SetCurrentRow(i)
datatable.Value(1,1)=i
Next

Is This Answer Correct ?    7 Yes 3 No

How to add multiple values in rows, under a single column of a run time datatable?..

Answer / srihari prasad nayak

21
45
87

Is This Answer Correct ?    2 Yes 9 No

How to add multiple values in rows, under a single column of a run time datatable?..

Answer / saff

BY importing the data from external excel sheet

1) first addsheet
2) importheet from excel to the local datatable

datatable.addsheet(tagretsheet)
datatable.importsheet sourcefile,sourcesheet,targetsheet

or else

u can manualy give the values into the shhet

datatable.value(parametername,sheetname)=parametervalue

Is This Answer Correct ?    5 Yes 13 No

Post New Answer

More QTP Interview Questions

What are the Test design techniques you uses in ur project?

0 Answers   Accenture,


In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)

1 Answers  


hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c

8 Answers  


How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?

6 Answers  


any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Browser ("Browsername").Page("Pagename").Weblist ("weblistname"),"items count")) msgbox intFieldItemsCnt

1 Answers  






i want click on a link which is in 3rd row and 2nd column of a web table.write script to execute

2 Answers   IBM,


how to reverse the string without using bultin functions(i.e mean mid,len ,reverse functions)

6 Answers   GE,


Wat is the command used to add an object(properties) to an object repository?

2 Answers   Virtusa,


What are the methods of the TextStream object that are used for reading from a text file?

0 Answers  


what is vss and cvs what is main difference b/w these two

3 Answers  


how to test one edit box using Java addin for Web Applications? write script?

1 Answers   IBM,


How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.

3 Answers   Virtusa,


Categories