Loops/Foreach: Difference between revisions
Content added Content deleted
(Added Hy) |
|||
Line 2,044: | Line 2,044: | ||
=={{header|VBScript}}== |
=={{header|VBScript}}== |
||
<lang vbscript> |
<lang vbscript>items = Array("Apple", "Orange", "Banana") |
||
items(0)="Apple" |
|||
items(1)="Orange" |
|||
items(2)="Banana" |
|||
For Each x |
For Each x In items |
||
WScript.Echo x |
WScript.Echo x |
||
Next</lang> |
Next</lang> |
||