How can we count the no of rows are available in a data
table ?

Answers were Sorted based on User's Feedback



How can we count the no of rows are available in a data table ?..

Answer / mohibul islam

DataTable.GetRowCount - this is for Global DataTable
DataTable.GetSheet(sheetId).GetRowCount - this is for Local
DataTable

Is This Answer Correct ?    11 Yes 1 No

How can we count the no of rows are available in a data table ?..

Answer / uday kumar_anem

All of you are correct, but i am adding one small change.
datatable.getsheet(SheetId).getrowcount

Is This Answer Correct ?    7 Yes 0 No

How can we count the no of rows are available in a data table ?..

Answer / krishnachand

I think it is getrowcount()

Is This Answer Correct ?    3 Yes 0 No

How can we count the no of rows are available in a data table ?..

Answer / rao' prasad

DataTable.GetRowCount()function usful for findout rows
(Contain Values)in the datatable.

Is This Answer Correct ?    2 Yes 0 No

How can we count the no of rows are available in a data table ?..

Answer / nanda

Mohibul is exactly correct...

Is This Answer Correct ?    2 Yes 2 No

How can we count the no of rows are available in a data table ?..

Answer / rafi

Mohibul is correct

Is This Answer Correct ?    1 Yes 2 No

How can we count the no of rows are available in a data table ?..

Answer / naga

mohibul is
correct

Is This Answer Correct ?    1 Yes 2 No

How can we count the no of rows are available in a data table ?..

Answer / k.chandra sekhar

a) Use this Get row account the in the table no of the
rows account.
b) Here the use of the, for loop.

My name is k.chandra sekhar,
My phone no is 09246540049,
Hyderabad.
My mail id is ndra_143@yahoo.co.in
If any body want full explain send the mail

Is This Answer Correct ?    1 Yes 4 No

How can we count the no of rows are available in a data table ?..

Answer / bombay

all of them are wrong

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More QTP Interview Questions

What is descriptive programming?

15 Answers   Wipro,


How 2check the color of the text in the textfield . say suppose the text entered in the textfield object is appearing in red. so i want to check whether the text is in red color or not. It could be great help for me if any one solve's my issue. plz...help

5 Answers   Sinertel,


Explain about the Test Fusion Report of QTP?

1 Answers   Crea,


I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..

3 Answers  


How software tester can use constants and variables in scripts?

0 Answers  






How to add a runtime parameter to a datasheet?

1 Answers   Crea,


What is User defined function in QTP

6 Answers   Bank Of America,


How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it

1 Answers   TCS,


Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


hi everybody this questions is only for qtp real time users. anyone please clearly explain the approach u r following for qtp testing in ur company or qtp framework u r following in ur company pelase give me clear explanation then u did great favour to inexeprienced qtp users

0 Answers   Automobile, EDP,


I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini

1 Answers  


can u expect, major bugs in NET BANKING Project? Modules Transaction Module, Customer Relation Module.

2 Answers  


Categories