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 is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

0 Answers   Livetek,


How you handles Pop-up windows which are Dynamically changing in Runtime?

2 Answers  


What is the file extension of the code file & object repository file in QTP?

2 Answers  


Which scripting language used by QTP?

1 Answers  


How will you send values to a cell in a webtable using QTP?

2 Answers  


Output values? i want a practical example

0 Answers  


Does QTP support flat files? If yes what are those?

2 Answers  


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

0 Answers  


Have you used TD?

2 Answers  


hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..

3 Answers  


In a web page, one web table is present which is dynamic. In that table one of the column has links with the same inner text. write a script so that i need to click the third link.

3 Answers  


hi i need to learn qtp its very urgent..pls tell me who is the best faculty for qtp in hyd..... and i plan to go foe mindq nageshwar rao? its good or not?

2 Answers  


Categories