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   To Refer this Site to Your Friends   Click Here
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 smart identification?  6
Hi, Can anyone tell me what type questions can be ashed in interview on QTP?  1
How to connect QTP to Testdirector Polaris4
QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance. UHG3
can we test an windows application using qtp  1
How many types of Test Plans are there...??  3
Synchronizing test Wipro2
if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND ADP4
How can i open 5 multiple browser at once through QTP VB script  2
How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box  1
I installed QTP 9.5 on vista. Can someone please provide me the license key of the same. Thanks, Avi  2
What is object repository?  2
How many tables r created during the recording in QTP?  1
Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.  5
in QTP we test web based application at that time what script is run? is support vb script? plz tell me  3
If the web applicatoin takes navigation time above 2 hours to dispaly next Web page then how can we synchronize the QTP with Appilication Under Test TCS2
how do you run scripts in QTP?please anyone can answer my questions Ordain-Solutions2
How can we count the no of rows are available in a data table ? Kanbay8
Tell me the situations where we will use Data Driven? Ordain-Solutions3
can a Function return more than one value..??? if so please give me the code for that. DST-Global-Solutions2
 
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