07-27-2023, 07:15 AM
Description:
Arrays allow you to store multiple values of the same data type.
Example:
Sub ExampleArray()
Dim numbers(3) As Integer
numbers(0) = 1
numbers(1) = 2
numbers(2) = 3
numbers(3) = 4
MsgBox "The third number is: " & numbers(2)
End Sub
Arrays allow you to store multiple values of the same data type.
Example:
Sub ExampleArray()
Dim numbers(3) As Integer
numbers(0) = 1
numbers(1) = 2
numbers(2) = 3
numbers(3) = 4
MsgBox "The third number is: " & numbers(2)
End Sub
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos