September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
13
Task/Loops-Foreach/BASIC/loops-foreach-15.basic
Normal file
13
Task/Loops-Foreach/BASIC/loops-foreach-15.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Public Sub LoopsForeach()
|
||||
Dim FruitArray() As Variant
|
||||
Dim Fruit As Variant
|
||||
FruitArray = [{"Apple","Banana","Strawberry"}]
|
||||
Dim FruitBasket As Collection
|
||||
Set FruitBasket = New Collection
|
||||
For Each Fruit In FruitArray
|
||||
FruitBasket.Add Fruit
|
||||
Next Fruit
|
||||
For Each Fruit In FruitBasket
|
||||
Debug.Print Fruit
|
||||
Next Fruit
|
||||
End Sub
|
||||
Loading…
Add table
Add a link
Reference in a new issue