Frequency

Checks how many items in an ANStr
ANStr is list of items separated by a seperator
like "Item1||Item2||Item3||Item4"


Public

Tested

My Own Work
Function Frequency(TheString, TheSep)
' Counts how many Items found in string with seperator, seperator can be any string, or char
' TheString="Esum+ColID+ColID"
' TheSep="+"
Frequency = (Len(TheString)-Len(Replace(TheString,TheSep,""))) / (Len(TheSep)) + 1
End Function

TheString, TheSep

Views 4633 Downloads 1275

Classic ASP Texts + Strings
ANmarAmdeen
813
Revisions

v1.0