How to findout the number of spaces with in STRING For Ex :
STRING is " RAJ IS A SOFTWARE ENGINEER "
Please send me the answer
Answers were Sorted based on User's Feedback
Answer / pavaniprasad
Dim str
str="RAJ IS A SOFTWARE ENGINEER"
s=split(str," ")
msgbox ubound(s)
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / shweta
str=" RAJ IS A SOFTWARE ENGINEER "
counter=0
For i=1 to len(str)
space_num=mid(str,i,1)
if space_num=" " Then
counter=counter+1
End If
Next
msgbox counter
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sadriddin
str=" RAJ IS A SOFTWARE ENGINEER "
NumOfSp = Len(str) - Len(replace(str, " ", ""))
Msgbox NumOfSp
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the concept of how QTP identifies object.
Could you please suggest a book to start with QTP and also a book for advanced concepts?
In qtp is it possible to check broken links of a page?
What’s the basic concept of QTP?
What does mean by Scope of Automation?n How we defined it?
I want to learn Advanced QTP, suggest me the best faculty in Hyderabad
What is SQL injection?
what is compiled module?
Synchronozation types in QTP
What is qtp window?
How can i check all the button that are enabled in a widnows based application ? What script should i write for this ?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?