Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

When importing an excel file that has several columns each
with different number of rows into QTP's Global datatable,
how can you count the number of rows in a particular column?

Answer Posted / pushkar1206

datatable.ImportSheet "C:UserspushkarDesktop123.xls","Sheet1","Action1"
rw=datatable.GetSheet("Action1").GetRowCount
For i=1 to rw
a=datatable.GetSheet("Action1").GetParameter("_11").ValueByRow(i)
c=len(a)
If c>0 Then
b=b+1
End If
Next
msgbox b

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How strcomp function works?

1043


What is the difference between do until loop and do while loop?

1035


who will create the object?

2165


How are values assigned to the variables in the vbscript language?

1012


how to check whether link is disabled in QTP??

6074


Can anyone send me a vb script function for verifying the functionality of active links on a web page

1983


Explain about filter expression?

958


Compare java script and vb script?

1048


why variable name should not exceed 255 characters?

2186


How can you create an object in vbscript?

1044


Can u describe what kind of testing are for OTC derivates by banks.

2105


Explain about scrrun.dll in vbscript?

1060


What is the difference between javascript and vbscript?

1109


What is dictionary object in vbscript? Explain?

1139


How to get the length of the string by making use of the string function?

1029