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

Answer Posted / jaag@jagadeesh

dim str
str="this is jagadeesh
var=UBound(split(str," ")))
msgbox var

ans
2

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

1102


What is the virtual object?

748


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1564


How you can write contexts to text file in qtp?

676


what is the advantages and disadvantages of using functions instead of re usable actions

1517






Why bpt?

695


Explain how Selenium is different from UFT?

783


Does quicktest professional is unicode compatible?

602


What is method name to compare two XML files.

1633


What is different command used in command Prompt while using QTP?

1852


What are the different attributes used with regular expression?

640


Explain more about the Test Fusion Report of QTP?

690


what is error and fault in terms of software quality?

1536


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2312


What are the benefits of qtp?

643