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

Answer Posted / ravi

str="POWER STAR PAVAN"
len1=len(str)
msgbox len1
str=replace(str,"A", "")
len2=len(str)
msgbox len2
a=len1-len2
msgbox a

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any body give the banking domain concepts/links

3719


Mention the test steps of qtp.

630


Where we can use the synchronization?

655


What does mean by Scope of Automation?n How we defined it?

1655


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1592






Can launch two instances of qtp on the same machine?

654


How to create runtime property for an object?

1540


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1856


Whats the realtime QTP testing process

2072


Which features or drawbacks of QTP lead to the upgrade for a newer version?

657


Is it possible to switch between recording modes during a test creation?

679


Where you are storing your script?

723


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

1895


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

1552


Difference between action & Reusable action?

750