Hi...
Can anybody help me to write the vbscript for this
question..!!! Am having a string "HELLO WORLD", i want to
find how many "L"s are there.....?????
--> HANEEF <--
Answer Posted / nagk24
here one more using loops and inbuilt functions
cnt=0
a="HELLO WORLD"
For i=1 to len(a)
n=mid(a,i,1)
If asc(n)=asc("L")Then
cnt=cnt+1
End If
Next
print cnt
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
wt is the use of multiple questions in QTP
Key word driven framework
What is the difference between Keyword Driven test and Data Driven test?
What are the steps involved in recovery scenario wizard?
Does Low-level recording capture mouse movements?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
What is the diff between image and bitmap check point?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
what is command for executing files?
Is it possible to use two instances of UFT on the same machine? If not why?
What are the factors on which script execution time is dependent?
In Remote acess server how u run a test?
What is QTP testing process?
What is recovery scenario manager? When you go for recovery scenario manager?