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

Explain how qtp identifies objects?

564


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1798


What are the key elements available in test result window?

618


what is clean sweep?

1875


How to test login module with different username and password by using data driven testing in QTP?

601






Difference between test object and run time object?

586


What are the benefits of quick test pro(qtp)?

556


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

1450


write the vb script for call to new action in qtp?

1852


Explain different checkpoints in qtp.

716


what is the difference between the modular framework and datadriven frame work

1906


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1430


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1479


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1752


How many types of parameters are available in quicktest professional?

514