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

Answer Posted / goms

Val="POWER STAR PAVAN"
If instr(Val,"A")>0 then
Msgbox "Pass"
Else
Msgbox "Fail"
End IF

Note: If instr function returns the position of the value.
If it is greater than 0, the letter is in the particular
variable

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In qtp, how you can get the last character from a string?

640


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1588


What is object spy in quicktest professional?

709


what is the difference between development and testing

2574


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1486






What are the different recording modes and how do they work?

703


How many types of Automation frameworks are there in UFT? Describe them.

641


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 the element we r test for QTP... explian clearly with example

1596


What are the recording modes in qtp?

674


Can anybody post some real time scenario in qtp? please its very urgent.

1897


What test you perform mostly? Regression or retesting in your testing process?

663


Problem with XML checkpoint in QTP ?

3602


What is qtpro? What is quick test pro?

675


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2312


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1726