Home > comp > gb > array > max 
 en fr de es it nl pl pt pt_BR mk sq hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
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

Example

DIM i AS Integer, Text AS String[]

Text = ["Just", "test"]

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