how to count spaces in a given string ex: "this is jagadeesh"
in QTP with simple functional script

Answer Posted / karthik janahan

Dim str
str = "how to count spaces in a given string"
msgbox (len(replace(str," ","..")) - len(str))

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Curd testing?

2100


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1777


Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

1905


what is the diffrence bw qtp architectute and qtp framework?

1766


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

811


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2705


How does you pass optional arguments in qtp?

796


How to start recording using quicktest professional?

878


What is clean sweep?

1617


What are the views available in qtp?

829


If the objects hierarchy is changing from build to build, then how you will handle that condition?

826


How to handle dynamic objects in quicktest professional (qtp)?

753


What is object spy in quicktest professional (qtp)?

745


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

2163


What is the parameterization?

791