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

what is supply chain management?

0 Answers   ITC Infotech,


What is environment variable in qtp and why to use it?

0 Answers  


Explain abt the File System Object in QTP with ex

3 Answers   Ordain Solutions,


what are build and version plz explain why nomber changes in build and version?

3 Answers  


Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?

5 Answers  


How can I pass values from one action to another in QTP ?

8 Answers   Ordain Solutions,


Batch testing in howmany ways u perfrom in QTP

3 Answers   Lehman Brothers,


How to return a value from a fn, if it has more than one value how to return

3 Answers   Verizon,


How to integrate the qualitycenter with qtp

0 Answers   Wipro,


How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.

11 Answers   Thatavarti Technologies,


I dont know how to configure non standard objects to standard objects in QTP9.2 can i have someone explain me in breify?

3 Answers   TCS, Wipro,


How we can do Batch testing in QTP?

6 Answers   Kanbay,


Categories