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

Please send me the answer

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1525


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

6333


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1509


When and why to use descriptive programming?

612


how to acess a test in RSA?

1673






Can launch two instances of qtp on the same machine?

583


What is the syntax for how to call one script from another?

565


Explain the difference between call to action and copy action?

525


what is the latest version of QTP? Main difference between 9.2 and 10 version

1556


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

3426


Explain different types of action in qtp?

576


What is quick test pro?

594


Tell me about your project? please help me how to tell about insurance project

1537


What are the steps involved in recovery scenario wizard?

533


Define Error Pane of UFT?

696