There is a name "AJAY" how do u count no.of. "A" in that
name ?
Answers were Sorted based on User's Feedback
Answer / swarna
Dim txt, cnt
txt="ajay"
p=split(txt,"a")
cnt=0
for i=1 to ubound(p)
cnt=cnt+1
next
b=cnt
msgbox cnt
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
how to run the script If QTP tool not identify object in web page
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp
Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot
How to capture dynamic objects in qtp like mark up text
How to compare the two strings?
how to upload an excel sheet to quality center?
WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)
What is the another extention name of library file.If that is exist than what's the differnce between them.
Explain how you can delete excel file in qtp?
How to create scenario selector
Does Low-level recording capture mouse movements?