comp • gb • array • max

Array.Max (gb)

Property Read Max As Integer

Returns the greatest index of the array.

In other words, Array.Max = Array.Count - 1.

This property is useful for enumerating the array using FOR .. NEXT

Examples

Dim i As Integer, Text As String[]

Text = ["Just", "test"]

For i = 0 To Text.Max
    Print Text[i]
Next