There is a name "AJAY" how do u count no.of. "A" in that
name ?

Answer Posted / swarna

Dim txt, cnt
txt="ajay"
p=split(txt,"a")
cnt=0

for i=1 to ubound(p)
cnt=cnt+1
next

b=cnt
msgbox cnt

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default add-ins in qtp?

552


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1486


How to suppress warnings from the test results page?

597


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1500


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

2379






What is smart identification in QTP?

624


what is run-time data?

1694


What is the syntax to call one action in another?

548


What is system testing and what are the different types of tests you perform in system testing?

597


what is the frame work in J-meter?

1598


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

1545


Explain xml checkpoints.

595


How to test fly out menu in qtp?

517


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1576


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

581