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 / uma
Test:
str="it is a testing question"
Call spacecount(str,d) /*Function Call*/
msgbox "Number of spaces:" & d
User Defined Function :
Public function spacecount(a,b)
str=a
p=split(str)
coun=0
For i=1 to ubound(p)
coun=coun+1
Next
msgbox coun
b=coun /*Returns Number of spaces to the calling Function /
End Function
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How to handle Java tree in QTP?
How many types of run modes are there in qtp?
How to use the object spy in quicktest professional 8.0 version?
Explain how Selenium is different from UFT?
How does you pass optional arguments in qtp?
Does QTP record on Objects created on XWindows Environment?
Can I change properties of a test object?
Explain object spy in qtp.
Give the syntax to load function at run time.
What is the difference between run time object and test object in QTP?
What are the trigger events in qtp?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
Why script error occur in between recording in qtp?
What is the extension of qtp local repository?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?