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 / ravi

arrResult= split("It is a Testing question", " ")
msgbox "No. of Spaces " & ubound(arrResult)

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is RTM (require ment tracebulity marix) fromate?

1529


What is smart identification in QTP?

629


How to use reporter.report event in qtp ?

557


Explain about Test Fusion Report of QTP?

615


What is difference between design time and run time data table?

587






Is any limitation to xml checkpoints?

558


In qtp is it possible to check broken links of a page?

585


Explain how qtp identifies object?

613


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1503


Have you done batch testing in qtp? If yes how you are doing?

507


What are the advantages of parameterization ?

595


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1626


Does QTP record on Objects created on XWindows Environment?

1661


Does QTP run in any environment?

614


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1184