There is a name "AJAY" how do u count no.of. "A" in that
name ?
Answer Posted / 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 |
Post New Answer View All Answers
Explain how you can find the absolute value of the number in qtp?
Is it possible to split an action? How?
Define virtual object?
How to give a call to another action from one action?
Define Error Pane of UFT?
what is keyword driven testing in qtp?n how is it useful?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
How QTP identify the system time that's changes every seconds?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
what is error and fault in terms of software quality?
For which type of project the iterative model is suitable?
How to export quicktest professional (qtp) results to an .xls file?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
If I give some thousand tests to execute in two days what do you do?