how to find number of characters(letter a) in
the sentence
Rain Rain Go away
Answer Posted / megha gupta
Dim Str, p,temp,i,l
i=0
Str= inputbox("Enter the string","User input 1")
p= inputbox("Enter the character you want to search in
specified string", "User Input 2")
l= Len(str)
Do while l>0
temp= left(str,1)
str= Right(str,l)
l=l-1
If (temp=p) Then
i=i+1
End If
Loop
Msgbox "Number of times "& p &" character in string is : "&
i &""
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to Import data from a file (file is on the desktop) to the data table
Explain a few date functions in vbscript
Mention the rules for using option explicit statement?
Which date function is used in the vbscript language to find the difference between the 2 dates?
did any one attended interview in applabs if you had gone through plz tell me the procedure
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
when we use filter funtiom invb script(QTP)
Explain about tristate constants?
Mention how to assign a date value to a variable?
Mention what is byref and byval parameters in vbscript?
Explain the tristate constants in vbscript?
What are string functions in vbscript?
give me any information abou vb script books learn quckly
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz