how to retrive that the number of spaces are in a string ????

Answers were Sorted based on User's Feedback



how to retrive that the number of spaces are in a string ????..

Answer / kamakshya prasad

Dim str
str="QTP, an automation Tool uses for software testing"
s=split(str," ")
msgbox ubound(s)

Is This Answer Correct ?    6 Yes 0 No

how to retrive that the number of spaces are in a string ????..

Answer / uday

You just split with space, and the ubound of that array +1
is the number of spaces.

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More QTP Interview Questions

Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?

3 Answers   Symphony,


What is throw object?

0 Answers  


How to get Traceability matrix from TD?

0 Answers  


do you prepared framework,pls answer this

1 Answers  


What are the different scripting languages you could use when working with QTP ?

6 Answers  






How can you find Local Host Name by Using QTP?

4 Answers  


I have action1, action2, action3 r there.my query is while executing if i get any error in action1 i want exit from here itself, otherwise execute action2, if i get any error in action2 i want exit from hereitself, like this,what is the method for this?

5 Answers   AZTEC,


hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance...

9 Answers   HDFC,


what is batch testing?

1 Answers  


What u say as experience(Interview) "TELL ME ABOUT UR SELf"? As a Fresher(interview) What u Say?

3 Answers   ShopRite,


Explain Checking XML....

1 Answers   Crea,


need clear explanation of actions and functions in qtp with examples?can anyone suggest me gud site for that other than qtp manual?

2 Answers  


Categories