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 |
What is test object model in QTP?
What type of VB script u had done in expert view?
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
How u perform Batch Program in QTP?
What is keyword view and Expert view in QTP?
list me out the shortcutkeys for some functionlities in the qtp for example to record ,to run ... etc
How to access values from Unix OS and how to write..
Hello Everybody, please tell me how to use accessibility checkpoint and XML checkpoint by giving any practical example of it.please provide me the steps to perform that and also pls provide the code too. Thanks in advance, Gaytri
Hi Friends, Can any one answer this question? 17) What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value
how we will use output values in qtp? is there any possibulity by descriptive programming?
I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm? I used the add fn also..
What are SetToProperty, SetRoProperty, GetToProperty scripting?