Examples: ForAll statement
Example 1
Dim myStats List As Variant
myStats("Name") = "Ian"
myStats("Age") = 29
ForAll x In myStats
Print ListTag(x); " = "; x
End ForAll
' Output:
' Name = Ian
' Age = 29
Example 2
Dim minima(5) As Integer
minima%(0) = 5
minima%(1) = 10
minima%(2) = 15
' Set all elements of array minima to 0.
ForAll x In minima%
x = 0
End ForAll