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

Answer Posted / nitin kumar

str="this is jagadish"
k=split(str," ")
msgbox("spaces are "&ubound(k))

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features supported by UFT?

673


What are the different types of qtp test assets and their extensions?

600


How you can write contexts to text file in qtp?

592


How can i initiate the objects to find uniquely in OR

1474


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

1469






what are all the fileds present in object repository?

1566


How will you compare keyword and expert view?

541


What is the meaning Work bench?

1765


How to use reporter.report event in qtp ?

558


Where is the Bitmap checkpoint information stored?

1764


what is defenetion of kiran can u tell me plz CVS, SVN

1572


Hi,All How to create a link in excel sheet using qtp

3003


How to find operating system information using the qtp script?

584


What is the file extension of the code file and object repository file in QTP?

600


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1393