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 are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

0 Answers  


for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b

3 Answers  


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

0 Answers  


What are the enhancements u did after recording ur script?

3 Answers  


how will you load the test cases in ddt?

0 Answers  






one page contain next button.when we enter that its not going to next page.what type of error that one.

3 Answers   TCS,


what is a file system object in QTP

7 Answers  


How to analyzing Test Results using QTP?

1 Answers  


How Does Run time data (Parameterization) is handled in QTP?

4 Answers   IBM,


difference between GetROProperty and GetTOProperty

3 Answers   Wipro,


1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). 2. Using descriptive programing, how do you handle changing URLs. Pls anyone, very urgent

2 Answers   Infotech,


how do we add a new sheet to data table in QTP?

7 Answers   TCS, Wipro,


Categories