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

I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1936


What are the advantages of vbscript?

1029


when we use filter funtiom invb script(QTP)

2729


Difference between dim,public and private variables in vb script?

901


Can automation testing find ssame no. of bugs what we can find by manual testing?

1911


Write a code to print numbers from 5 to 0?

1082


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2914


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

985


Which function allows you to instantiate an object given its programmatic identifier or progid?

979


How will you convert a string to lower case string using vbscript?

963


Which keyword is used to declare a variable in the vbscript language?

898


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

988


Mention when to use function procedures and what are its characteristics?

1055


How many types of procedures are available in the vbscript language?

944


How you can call vbscript functions?

1020