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
What are the data types in qtp?
What is difference in global and action sheet in qtp?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
Can the user toggle between using Local OR and shared OR for the same action?
What is checking bitmaps?
What is the difference between analog and low level recording?
What is Port testing. Whhen will you perform?
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
How often were they executed?
How do I get the QTP scripts result in xml format by using vb script function?
How to use reporter.report event in qtp ?
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.
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Step 3&4 are repeated until an the object in recognised uniquely.
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in