How can i count "spaces" in any sentence or a string
if suppose " It is a Testing question"
Here we have 4 gaps(spaces)
Is there any function to find out spaces between words
Answer Posted / nitin sharma
dim mystring
mystring = "QTP world is a software engineer"
msgbox Len(mystring)-Len(Replace(mystring," ",""))
'it will give count of spaces
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can I change object description or check point values in qtp?
What is accessibility check point?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
What are the features of quick test pro(qtp)?
How to open a new test using quicktest professional?
What are the features supported by UFT?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
after initiating one project for testing, when exacltly QTP tester role starts?
What is the use of Debug Viewer?
What is keyword view in qtp?
What are the different properties of an web object
How qtp identifies objects?
how to write xml output check point bu useing descriptive programing .means without useing output check point
Explain how to use QTP to check broken links on a page?