I think the equivalent of lists would be arrays in terms of common usage.
Where it is common to use a list in Python you would normally use an array in VB.
However, VB arrays are very inflexible compared to Python lists and are more like arrays in C.
' An array with 3 elements
'' The number inside the brackets represents the upper bound index
'' ie. the last index you can access
'' So a(2) means you can access a(0), a(1), and a(2) '
Dim a(2) As String
a(0) = "a"
a(1) = "b"
a(2) = "c"
Dim i As Integer
For i = 0 To UBound(a)
MsgBox a(i)
Next
Note that arrays in VB cannot be resized if you declare the initial number of elements.
' Declare a "dynamic" array '
Dim a() As Variant
' Set the array size to 3 elements '
ReDim a(2)
a(0) = 1
a(1) = 2
' Set the array size to 2 elements
'' If you dont use Preserve then you will lose
'' the existing data in the array '
ReDim Preserve a(1)
You will also come across various collections in VB.
eg. http://devguru.com/technologies/vbscript/14045.asp
Dictionaries in VB can be created like this:
Set cars = CreateObject("Scripting.Dictionary")
cars.Add "a", "Alvis"
cars.Add "b", "Buick"
cars.Add "c", "Cadillac"
http://devguru.com/technologies/vbscript/13992.asp