dev.kanngard.net make sure you visit my new blog at: johankanngard.net

StringTokenizer class in LotusScript

by Johan Känngård / [LotusScript] / 2002-06-05 / #24


Yet another useful class, that splits strings into substrings, using one or more delimiters. Default delimiters are space, CR, LF, tab and FF. The Enumeration class, that this class subclasses, can be found in the Vector "article". You can use it like this:

Dim tok As New StringTokenizer("A very useful text")
Do While tok.hasMoreElements()
	Print tok.nextElement()
Loop

which prints:

A
very
useful
text


Floppy icon StringTokenizer.ls4 Kb