Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript
Thanks in advance
Answer Posted / sisira
str1="1,1,2,2,3,3,4,2"
l=len(str1)
for i=1 to l
if mid(str1,i,"1")="1" then
count1=count1+1
elseif mid(str1,i,"1")="2" then
count2=count2+1
end if
next
msgbox count1
msgbox count2
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I want to do QTP Certification what is the pattern of Question paper.
How will you test a keyboard?
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
How to change the priorities of the recovery scenario properties?
What is the difference between the keyword view and expert view?
What is debugging? How you debug your script?
In qtp, how you can use xpath to identify objects?
What are private functions in QTP? How they can be called from the function library?
what is the latest version of QTP? Main difference between 9.2 and 10 version
Have you faced any problems with object repository?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
what is the mail use of frame work(with detail). architecture for keyword driven frame work
What is TOM in QTP?