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

Answer Posted / seru

str="POWER STAR PAVAN"

Number_of_A=Len(str)-Len(Replace(str,"A",""))
msgbox Number_of_A

Answer is 3

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is description object?

1590


Tell me about your project? please help me how to tell about insurance project

1529


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1519


what is the difference between built-i function and In-built function?

1631


What is the expert view?

547






www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1726


How to explain a banking project in interview as a test engineer???

2593


why text area checkpoints cannot used for web applications

1881


how can i call function (which has link with excell sheet at a remote location) within another function

1573


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

1405


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

1949


What is checkpoints for qtp?

528


What are advantages of test automation?

663


What is CMMP and CMMH?

694


What are the differences between qtp and winrunner?

527