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

Answer Posted / lak

str ="Rain Rain Go away"

d=split(str,"a")

msgbox ubound(d)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

605


What's the difference between vbscript and vb.net?

545


How will you convert a string to upper case string using vbscript?

546


Why is the use of exit do or exit for statements within loops discouraged?

558


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

503






I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

857


What is loose binding? Why is it not a good practice to use it?

625


How do you declare a variable in vbscript?

620


Write a Script for ATM in QTP

3329


what is the object hyrarchy in QTP for a web based application

1875


What is the main difference between function and sub-procedure?

545


What are the properties of regexp object?

575


What is the use of option explicit in vbscript?

538


How can you create a file object to work with the files in the vbscript language?

498


Mention the environments where vbscript could be run?

647