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

what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1651


What is the qtp testing process?

612


How to find the difference between 2 dates in qtp?

595


What is the registration process and examination fees?

562


How does qtp identify gui object?

594






How to record a qtp script ?

568


How to handle Java tree in QTP?

752


What is the basic concept of quicktest professional?

546


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1330


What are the advantages of parameterization ?

600


How many types of trigger events are there in qtp?

559


we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

1641


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1439


What are the factors on which script execution time is dependent?

621


Give me some real time point of way where exactly we can conduct audits?

1508