The string is like POWER STAR PAVAN , write a script for
this how to findout the number of "A" in the string ?
Answer Posted / madhulika
function VerifyLetters(S_String,S_Pattern,MatchStr)
Set OReg = new RegExp
Set S_Pattern = OReg.Pattern
OReg.IgnoreCase = True
OReg.Global = MatchStr
Set Matches = OReg.Test(S_String)
MatchFound = Matches.count
VerifyLetters = MatchFound
End Function
-------------------------------------
val = "Power star pavan"
'Calling function
msgbox VerifyLetters(val,"A",True)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to break the object spy ?
Is it possible to call from one action to another action in qtp?
Does QTP record on Objects created on XWindows Environment?
How to handle dynamic objects in quicktest professional (qtp)?
how to test load test and block box testing an a web based application pls give ans briefly
What is the difference between the design-time and run-time data tables?
Define Error Pane of UFT?
How to find a window is minimized or not
What is the syntax to call one action in another?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
How will you declare a variable in qtp?
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
How to get Traceability matrix from TD?
How to find the difference between 2 dates in qtp?
Diff b/w Health care domain and Banking Domain?