by Matt Johnson (5 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 22nd December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This is simple code that returns if something is an array
Dim MyVariable
Dim MyArray(3)
MyArray(0) = Rnd * 5
MyArray(1) = Rnd * 5
MyArray(2) = Rnd * 5
MyVariable = IsArray(MyArray)
MsgBox "It is " & MyVariable & " that it is an array, " & " it's contence are " & MyArray(0) & ", " & MyArray(1) & ", and " & MyArray(2)
End Sub