faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Functions

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

24 of 27 people (89%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

What function can I use to count the number of occurrences a specific character makes?

May 22nd, 2000 05:47
unknown unknown, Matthew Connor


Problem:

from -  HTTP://127.0.01.14/default.asp

I want to find the number of times that the "." period shows up.

Solution:

String = "http://127.0.01.14/default.asp"
arrString = Split(String, ".")
DotCount = UBound(arrString)

DotCount is your answer.



© 1999-2004 Synop Pty Ltd