Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Public Sub GetArray()
Dim qAry As Variant, N As Integer
qAry = MakeArray()
For N = 0 To 2
Debug.Print qAry(N)
Next
End Sub
Public Function MakeArray() As Variant
Dim Ary(2) As String
Ary(0) = "Good"
Ary(1) = "Old"
Ary(2) = "Time"
MakeArray = Ary()
End Function[/blue]
[blue]Public Sub GetArray()
Dim qAry As Variant, N As Integer, hld As Variant
qAry = MakeArray()
For N = 0 To 2
'VarType(qAry(N)) = 3 = Long Data Type
Debug.Print VarType(qAry(N)) & " " & qAry(N)
Next
End Sub
Public Function MakeArray() As Variant
Dim Ary(2) As Long
Ary(0) = 1000
Ary(1) = 2000
Ary(2) = 3000
MakeArray = Ary()
End Function[/blue]