how to find number of characters(letter a) in
the sentence
Rain Rain Go away

Answer Posted / aditya

Dim sentence, testchar, arr
sentence = Inputbox(" Enter a sentence" )
testchar = Inputbox(" The charecter to be checked")
arr = split(sentence, testchar)
msgbox "Total number of charecter " & testchar & " in sentence " & sentence & " is " & ubound(arr)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1854


What is the use of the instr function?

587


How to Enter Values on the Command promt using VB script

1534


How to access array data?

545


What are the uses of vb script?

588






Explain some uses of vb script?

556


Explain about arrays in vb script?

608


There are 5 web pages.write a script to click the button on 4th web page.

2942


What are the 2 ways to pass a value to the function?

520


What is vbscript language used for and which earlier language is it modeled upon?

539


What purpose does ‘on error resume next’ serves?

553


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

2264


In html file what is an ideal position to include vbscript?

818


How are values assigned to the variables in the vbscript language?

579


Both Static and dynamic arrays are handled by VB script. Is it true?

618