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

Can any one send me the QTP Basic Coding Samples?

1607


write a script to verify the image path(src property) of the images which are in web pages.

1797


How to break the object spy ?

655


tell me QTP standards ?plz

1509


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

1862






how did u use automating testing tools in ur job?

1479


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3260


What is the meaning Work bench?

1756


How to create scenario selector

1468


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2655


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3046


Is it possible to call from one action to another action in qtp?

552


Explain the benefits of quick test pro(qtp)?

563


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

1636


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1395