hi, would like to ask whether there is a command or a function to get the number of elements in an array?
For example i have a data in an array which I will split. So is there a command in VB to check how many elements are there in an array? or to do this will need to loop and add the number of loops?
Please check code below:
any ideas is greatly appreciated. thanks.Code:Sub xxx() Dim i As Integer Dim split_str() As String For i = 0 To UBound(split_str) x = x + 1 ' to get the number of data in an array Next End Sub 'is there a command to count the number of elements without doing the loop?





Reply With Quote