ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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
 Question Submitted By :: Rayudu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
Test:

str="it is a testing question"
Call spacecount(str,d)  /*Function Call*/
msgbox "Number of spaces:" & d

User Defined Function : 

Public function spacecount(a,b)
 str=a
 p=split(str)
 coun=0
For i=1 to ubound(p)
 coun=coun+1
Next
 msgbox coun
 b=coun /*Returns Number of spaces to the calling Function /
End Function

 
Is This Answer Correct ?    1 Yes 0 No
Uma
 
  Re: 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
# 2
arrResult= split("It is a Testing question", " ")
msgbox "No. of Spaces " & ubound(arrResult)
 
Is This Answer Correct ?    0 Yes 0 No
Ravi
 
 
 
  Re: 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
# 3
s="Gita is a good girl "
d=split(s," ")
count =0
For i=ubound(d) to 1 step -1
	count =count +1

Next
msgbox count
 
Is This Answer Correct ?    0 Yes 0 No
Sri
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what is difference between wait and synchronization point. Intel3
What are Test case selection criteria for Automation?  2
What is iteration? How it is related to Test Results in QTP?  2
How to make Shared object repository in qtp 9.1 and 9.2?  2
Use of Debug Viewer?  1
How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?  1
can we enable smart identification for test object  3
I want different types of discriptive programming statments coded for different types of web-objects?Give syntax and example?  1
How to call a function in QTP?  3
How to record objects of Windows taskbar RoboSoft2
How to create frame work for qtp? Polaris1
wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference? Datamatics1
what is the difference between an Action and a function in real time  3
what is test data Wipro3
When you are running a batch test of 5 scripts and in 2nd script appln crashed, what hpns then? BirlaSoft4
how to merge 2 object repositories in qtp 9.0.what is use of merge and y merge is used?  1
hai,i want to select an option from the right click pop up menu.but the qtp is not recognizing the right click pop up menu as a seperate object.can any one tell me the solution.  3
Pls anyone, tell me the script in QTP to find the number of links, and images in a webpage. Verry very urgent. I shall really be very thankful  2
how to write testcases for web based insurance,from the script by using qtp.  1
How we can add actions in the test using QTP?  4
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com