Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


There is a name "AJAY" how do u count no.of. "A" in that
name ?

Answers were Sorted based on User's Feedback



There is a name "AJAY" how do u count no.of. "A" in that name ?..

Answer / ravi

res=split("AJAY","A")
msgbox "No. of A's " & ubound(res)

Is This Answer Correct ?    9 Yes 0 No

There is a name "AJAY" how do u count no.of. "A" in that name ?..

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

There is a name "AJAY" how do u count no.of. "A" in that name ?..

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

There is a name "AJAY" how do u count no.of. "A" in that name ?..

Answer / sid

Hello All
There is another way of doing this

x="AJAY"
if instr(x,"A")<>0 then
msgbox x
end if

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

I want to learn Advanced QTP, suggest me the best faculty in Hyderabad

12 Answers  


How do you move objects from local object repository to shared object repository???What are methods?

1 Answers  


While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,


What is data driven testing in QTP?

11 Answers   Agile Software,


what is the framework followed by ur company in qtp

5 Answers  


Will QTP Support Japanese Language?

3 Answers   Cap Gemini, Infosys,


What r the diffrernt file extentions in QTP?

3 Answers  


What is Optional step?

4 Answers  


suppose i can done the project , that project have 4 modules in that one module they have many links(web pages).in that time i can say i can work on some links? or total module?

4 Answers  


datatable.Import("E:\Programming Samples\QTP Samples\OrderNumbers.xls") Asume we have 4 records in datatable Code reads the 4 rows in the sheet ok, but does it 5 times? It doesn't sound like closing the datasheet is the problem Can we close the datasheet runtime ?

2 Answers  


i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0

1 Answers  


what is ODC and GDC?

0 Answers   Patni,


Categories