how to retrive that the number of spaces are in a string ????

Answers were Sorted based on User's Feedback



how to retrive that the number of spaces are in a string ????..

Answer / kamakshya prasad

Dim str
str="QTP, an automation Tool uses for software testing"
s=split(str," ")
msgbox ubound(s)

Is This Answer Correct ?    6 Yes 0 No

how to retrive that the number of spaces are in a string ????..

Answer / uday

You just split with space, and the ubound of that array +1
is the number of spaces.

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More QTP Interview Questions

Which property do you use to retrieve or assign data into a cell in a Data Table object?

1 Answers  


what type of automation is follwed in the project?

0 Answers   Google,


HI! I have completed my testing course in 2008. but now am working in banking sector as a data analyst and i want to move to an IT based company but am unable to understand whether i have to complete the testing course again and try for a job .

1 Answers  


What are the data types in qtp?

0 Answers  


WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)

1 Answers  






Hai anyone please "Explain about Framework in QTP?"

0 Answers  


what is the defference between QTP 8.2 and 9.0and 9.2? plz tell me

6 Answers  


can any one make me confirm about a real time employee with better experience in QTP who is providing QTP course individually in Bangalore???

3 Answers  


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

0 Answers  


Explain in brief about the quicktest professional automation object model?

0 Answers  


I have recorded a test using qtp to download a file in an application. Code: Browser("MFA Work Queue Manager").Page("MFA Work Queue Manager").Link("Rules Maintenance").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebEdit("txtSearch").Set "PmtType" Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Search").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Export").Click Browser("MFA Work Queue Manager").Dialog("File Download").WinButton("Save").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").Sync Dialog("Save As").WinButton("Save").Click Dialog("Save As_2").WinButton("Yes").Click Problem: When running this test it gives an error at line no. 5 as Save button object is not identified by it's parent object. This code I ran 4 times after recording at it was working fine but 5th time onwords, it starts giving me the above problem. I used exist property option, Check Property option but none of this changes work at all. Kindly help...

1 Answers   Bank Of America,


what ar the challenges do we face while testing webbased applications using the automation tool qtp or any?

4 Answers   TCS,


Categories