DoubleList Object
Description
A list of doubles. The class is better than a generic collection because it enforces type safety.
Methods
Count
Item
Add
Remove
Clone
Clear
Example
set dl = CreateObject("Toolsack.DoubleList")
dl.Add 1.11
dl.Add 2.22
dl.Add 3.33
MsgBox "There are " & dl.Count & " items in the list"
MsgBox "The second item is : " & dl(1)
dl.Remove (1)
MsgBox "There are " & dl.Count & " items in the list"
dl.Add 4.44
MsgBox "The second item is : " & dl(1)
dl.Add 5.55, 1
MsgBox "The second item is : " & dl(1)
Samples
Articles
We always want to hear your feedback. Send to feedback@toolsack.com.
© 2000-2001 Toolsack Software Ltd.