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 / nitin sharma

dim mystring
mystring = "QTP world is a software engineer"
msgbox Len(mystring)-Len(Replace(mystring," ",""))
'it will give count of spaces

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about datafile/verification of date file when file is not available in local system?

2504


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1754


How to use reporter.report event in qtp ?

805


How many add-ins comes by default with quicktest professional?

741


can u explain relative path architecture framework in qtp?

1790


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1742


Describe function procedure in vbscript.

828


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1757


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2284


Explain qtp(quick test professional)?

790


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

808


can anyone tell me from where i can download qtp demo or crack version

1810


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

1978


What are the key points to create a framework in QTP for oracle forms?

2036


What are the steps involved in recovery scenario wizard?

762