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

Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

1561


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2660


what QTP Options do you know?

2925


How will you declare a variable in qtp?

554


What are the properties you would use for identifying a browser and page when using descriptive programming?

629






What are private functions in QTP? How they can be called from the function library?

635


When should I use smart identification?

602


I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

2466


How many types of run modes are there in qtp?

585


What are the advantages of parameterization ?

594


Explain the difference between data driven testing and parameterization ?

583


how do i know how to use tools

1448


What are the views available in qtp?

584


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1380


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1424