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 test load test and block box testing an a web based application pls give ans briefly
banking domain description for software tester for interview
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
What is the use of text output value in quicktest professional (qtp)?
Explain quicktest professional testing process?
diff between qtp versions from 8.5
What is QTP’s model for test creation?
What are the advantages of a Hybrid framework?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
Explain the types of properties that quick test learns while recording?
How to check which add-ins are associated with a test in qtp?
How to get Traceability matrix from TD?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
Why do we use breakpoints in QTP?