1.How to find in which row or column,string "Hyderabad"
exist in excel sheet?
2.How to find how many times character "a" repeated in a
given string "Koteswararao"

Answer Posted / venkatesh naidu rangisetti

Option Explicit
Dim a,b,c,i,leng,var
b=0
c="a"
a="Koteswararao"
leng=len(a)
msgbox "length of"&" "&a&" "&"is"&" "&leng 'optional step

For i=1 to leng
var=mid(a,i,1)
If cstr(var)=cstr(c)Then
b=b+1
End If
Next
msgbox "Total Number of a's in Koteswararao are"&" "&b

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types in qtp?

667


What is difference in global and action sheet in qtp?

612


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1283


Can the user toggle between using Local OR and shared OR for the same action?

564


What is checking bitmaps?

556






What is the difference between analog and low level recording?

624


What is Port testing. Whhen will you perform?

1498


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

1214


How often were they executed?

2039


How do I get the QTP scripts result in xml format by using vb script function?

1785


How to use reporter.report event in qtp ?

557


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1701


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

703


Step 3&4 are repeated until an the object in recognised uniquely.

1524


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1603