Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to open excel in vb script?

1027


How to create a function in vbscript?

1242


What are class events?

987


Explain about vb script?

1232


What is the output of a + b in vbscript if a = 5 and b = 10?

3114


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

1088


What are class variables?

1041


What are the rules to name variable in vbscript?

1083


What is the technology used by vb script?

971


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

974


How to declare an array in vbscript?

1336


Explain about the support of asp for vb script functionality?

946


What is Procedure or Subroutine in VB Script?

1154


Write a Script for ATM in QTP

3897


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

2120