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

hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls.......

2 Answers   Vertex,


What is a Run Time Data table?

1 Answers  


Hi All, Can anyone provide me the license for QTP 9.5.... My Email ID: khanbro@rediffmail.com

0 Answers  


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

0 Answers  


Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepad text file rather than in the QTP result window. Suppose this is my simple script:WHich will open the notepad file and enter some text and then will change the font then will calculate how much time has been taken.Now, in this script i want to display the result in notepad file. Dim s Dim starttimer,endtimer,timeit s="uyetuywqtywqte" SystemUtil.Run "notepad","","Y:\","" Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp Window("Notepad").Dialog("Save As").WinEdit("File name:").Set "test1" Window("Notepad").Dialog("Save As").WinEdit("File name:").Type micReturn Window("Notepad_3").Type s Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp starttimer=timer Window("Notepad_3").WinMenu("Menu").Select "Format;Font..." Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Type "cou" + micDwn Window("Notepad_3").Dialog("Font").WinComboBox ("Font:").Select "Courier" Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Set "Courier" Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type micReturn endtimer=timer timeit=endtimer-starttimer print(timeit) Please also tell me where the function for the text file result will be declared and where it should be called. Thanks, Gaytri

2 Answers  






I have 14 itmes in a drop down that are associated with an account And these items change with different accounts I want to be able to define it by and index number or any other id so if I enter 2 in my Global excel sheet it selects the 2nd item from the drop down - is this possible?

5 Answers   Rogers,


If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script

3 Answers  


anyone can explain the following concepts. 1.diff b/w Linear and modular framework 2.diff b/w keyword and hybrid framework

1 Answers  


A question was asked in a company-suppose, I am testing a website on QTP, all the time a new title bar is appeared on next page. Trying to use regular expression under key word driven testing but expert view is also appearing unchanged and error is also generating, do you have any best resolution for that kindly explain in detail. please dont give example of yahoomail, that is unable to clear my doubt.

2 Answers  


anyone can explian about types of "Triggere Events" in QTP

1 Answers  


What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?

4 Answers  


What is action?

0 Answers  


Categories