Quick one - in your Language Reference for For Each…Next, your example states that this:
Rem For Each...Next Example
Dim School, Employee
School = Array("Principal", "Mr. Garrison", "Chef")
For Each Employee In School
Print "School employee:", Employee
Next
produces this:
School employee: Principal
School employee: Mr. Garrison
School employee: Chef
However, what I’ve found (after having been driven nuts) is that it would actually produce this:
School employee: 0
School employee: 1
School employee: 2
and in order to get what I actually want, I would need to amend the code to this:
Print "School employee:", School[Employee]
Is the description wrong? Or has there been a change? Or have I found a bug or something?