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

How will you find the current time of the remote machine using QTP script?

601


Differentiate the type of test cases which can be automated and which cannot be automated?

567


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1560


Explain how Selenium is different from UFT?

694


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1570






Explain the benefits of quick test pro(qtp)?

572


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1502


how to create flat file datasubmission in qtp

1906


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3703


HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1539


What is a checkpoint? How many check points are there in qtp?

531


What is TOM in QTP?

1806


how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

1450


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1253


How the exception handling can be done using quicktest professional (qtp)?

572