Array.Max (gb)

Property Read Max As Integer

Retorna o maior índice do array.

Em outras palavras, Array.Max = Array.Count - 1.

Esta propriedade é útil para enumerar o array usando FOR .. NEXT

Exemplo

DIM i AS Integer, Text AS String[]

Text = ["Just", "test"]

FOR i = 0 TO Text.Max
    PRINT Text[i]
NEXT