The string is like POWER STAR PAVAN , write a script for
this how to findout the number of "A" in the string ?
Answer Posted / uday
str="POWER STAR PAVAN"
counter=0
For i=1 to len(str)
strChar=mid(str,i,1)
If strChar="A" Then
counter=counter+1
End If
Next
msgbox counter
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
what is the mail use of frame work(with detail). architecture for keyword driven frame work
how to find that tools work well with ur existing system?
how can we compare descriptive programing with a regular expression
How you can replace string in qtp?
How to find the difference between 2 dates in qtp?
How to test login module with different username and password by using data driven testing in QTP?
Explain how you can find length of array in qtp?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
Explain sub procedure of vbscript.
Is it possible to call from one action to another action in qtp?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
Explain the Different types of QTP test assets and their extensions?
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?