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