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 |
what is supply chain management?
What is environment variable in qtp and why to use it?
Explain abt the File System Object in QTP with ex
what are build and version plz explain why nomber changes in build and version?
Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?
How can I pass values from one action to another in QTP ?
Batch testing in howmany ways u perfrom in QTP
How to return a value from a fn, if it has more than one value how to return
How to integrate the qualitycenter with qtp
How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.
11 Answers Thatavarti Technologies,
I dont know how to configure non standard objects to standard objects in QTP9.2 can i have someone explain me in breify?
How we can do Batch testing in QTP?