The string is like POWER STAR PAVAN , write a script for
this how to findout the number of "A" in the string ?

Answer Posted / pavani prasad naidu

Dim oArray
Dim ochr
oStr="POWER STAR PAVAN"
ochr="A"

oArray=split(oStr,ochr)
print ubound(oArray)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the short cut keys for the following?

640


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1318


how can i pass a "cript"as a parameter in to a function

1454


What is the difference between Keyword Driven test and Data Driven test?

1770


What is the use of running the scripts in Hidden-mode in UFT?

680






how many maximum number of virtual users we can create?

1566


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

505


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

1627


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))

1496


how will you load the test cases in ddt?

1593


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1459


Does QTP record on Objects created on XWindows Environment?

1656


What are the Disadvantages of shared object repository?

568


How the smart identification is used in real time?Please explain with an example

1545


What are the trigger events in qtp?

570