StringList Object
Description
A list of strings. The class is better than a generic collection because it enforces type safety.
Methods
Count
Item
Add
Remove
Clone
Clear
Example
Set sl = CreateObject("Toolsack.StringList")
sl.Add "string 1"
sl.Add "string 2"
sl.Add "string 3"
MsgBox "There are " & sl.Count & " items in the list"
MsgBox "the second item is : " & sl(1)
sl.Remove (1)
MsgBox "There are " & sl.Count & " items in the list"
sl.Add "string 4"
MsgBox "the second item is : " & sl(1)
sl.Add "string 5", 1
MsgBox "the second item is : " & sl(1)
Samples
Articles
We always want to hear your feedback. Send to feedback@toolsack.com.
© 2000-2001 Toolsack Software Ltd.