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

Answer Posted / nayana

Dim str

str="ajay"
b=len(str)

for i=1 to b
c=mid(str,i,1)
if c="a" then

d=d+1




end if
next
msgbox d

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which environments does qtp support?

670


What is smart identification in QTP?

621


Why script error occur in between recording in qtp?

1763


How to analyzing the checpoint results?

518


Explain how you can delete excel file in qtp?

583






This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?

1463


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

1799


How will you find the current time of the remote machine using QTP script?

591


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

599


How many types of recording modes in the qtp?

589


how to find that tools work well with your existing system?

1399


How QA specialist can identify when programmatic descriptions are useful?

1967


How can I check if a environment variable exist or not?

537


how to download mercury qtp9.2 ny internet ?

2953


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1608