Array bounds

dbarasch

New member
Local time
Today, 03:17
Joined
May 8, 2010
Messages
6
I created an property which accepts arrays in a custom class I wrote. When the property is set by the calling procedure, how can I get the total elements that are in the array at the class level?

Ex:

Public Sub Test()
Dim myarr(0)
myarr(0) = "..."
myarr(1) = "..."
Dim c as new myClass
c.Streets = myarr()

End sub


Public Class MyClass
Public Property Let Streets(Value())
How can this class get the count of elements in the array?
End property

End Class
 
Use the Ubound function to get the upper bounds of an array.
 

Users who are viewing this thread

Back
Top Bottom