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

What is quicktest professional (qtp window?

796


Is QTP supports Unix. If yes, then how the test automation is done?

1955


What is keyword driven framework?

843


How to analyzing test results using quicktest professional?

891


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

830


What is the use of ordinal identifier in qtp?

780


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1729


What is output value? How many types of output values are there in qtp?

789


How many ways is to parameterize the value?

838


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1578


What is a reusable action?

752


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

2112


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

1073


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

2018


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1830