Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to findout the number of spaces with in STRING For Ex :
STRING is " RAJ IS A SOFTWARE ENGINEER "

Please send me the answer

Answers were Sorted based on User's Feedback



How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ..

Answer / pavaniprasad

Dim str
str="RAJ IS A SOFTWARE ENGINEER"
s=split(str," ")
msgbox ubound(s)

Is This Answer Correct ?    13 Yes 0 No

How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ..

Answer / shweta

str=" RAJ IS A SOFTWARE ENGINEER "

counter=0

For i=1 to len(str)
space_num=mid(str,i,1)
if space_num=" " Then
counter=counter+1
End If
Next
msgbox counter

Is This Answer Correct ?    9 Yes 0 No

How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ..

Answer / sadriddin

str=" RAJ IS A SOFTWARE ENGINEER "

NumOfSp = Len(str) - Len(replace(str, " ", ""))

Msgbox NumOfSp

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..

1 Answers  


Sometimes my QTP scripts works fine and sometimes its not though I am using same shared Repository and am not doing any changes in it.Even though for descriptive programming also its works fine and sometimes it does not work.my application is pretty stable.Could anyone please answer why am facing these types of issue??

1 Answers  


Suppose i have given 10 test cases all the test cases should be automated?

3 Answers   NTT Data,


What are the option you can use to synchronize your test?

2 Answers  


Give me an example where you have used a COM interface in your QTP project?

1 Answers  


Does Low-level recording capture mouse movements?

0 Answers  


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

0 Answers  


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

0 Answers  


Explain the Load testing process?

1 Answers   Crea,


several browsers opened. write QTP script to close all browsers except gmail.

1 Answers   Thomson Reuters,


Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?

1 Answers  


Categories