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 are the recording modes in qtp?

781


what frame work you are following?

1711


I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...

1723


How to find the path of folder in which the test is saved in qtp?

740


Explain the concept of object repository?

742


To which environments does quicktest professional (qtp) supports?

777


How do you configure QTP AND Test director?

1695


can u explain relative path architecture framework in qtp?

1773


What is the qtp testing process?

811


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

1642


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1802


Explain object spy in qtp.

798


How can i initiate the objects to find uniquely in OR

1668


How you debug your script?

764


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1704