how to get column count in datatable

Answers were Sorted based on User's Feedback



how to get column count in datatable..

Answer / raju

colcount = datatable.GetSheet(Sheet name).GetParametercount

using above GetParameterCount u can get how many columns in
Datatable.

Is This Answer Correct ?    20 Yes 8 No

how to get column count in datatable..

Answer / d.t

need urgentlyy

Is This Answer Correct ?    4 Yes 3 No

how to get column count in datatable..

Answer / vishakha

ColCount = DataTable.GetSheet(dtGlobalSheet).GetParametercount
msgbox colcount

OR

ColCount = DataTable.GetSheet(1).GetParametercount
msgbox colcount

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More QTP Interview Questions

What type of problems one will face with QTP , if too many browsers are opened at a time?

2 Answers  


i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Semantic Space,


How do we create and run the scripts with out using O.R. ?

5 Answers  


Tell me few important difference Between QTP and WinRunner?

9 Answers   TCS,


What is the difference between keyword view and expert view?

0 Answers  






What issues come up in test automation, and how do you manage them?

0 Answers  


I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?

6 Answers   NIIT,


what is advantage of descripting programming in QTP?

3 Answers   ADP,


What are the main attributes of test automation?

3 Answers  


what is the advantages and disadvantages of using functions instead of re usable actions

0 Answers  


Can u tell me example for virtual objects?

2 Answers   Value Labs,


Can anyone explain about Keyword driven framework in detail and how to use it in case of any project

4 Answers  


Categories