CountFields()
Determine number of elements in a separated string.
Syntax: byte = CountFields( source as string, separator as string )
- source: The string in which to search.
- separator: String which separates the elements to each other.
See also: NthField()
Example
dim a as string a = "This | is | a | example!" print str(CountFields(a,"|") ' Result: 4