From Clomosy Docs
function High(var X): Integer;
Example
var
Arr1: Array [0..5] of Integer;
{
Arr1[0] = 10;
Arr1[1] = 20;
Arr1[2] = 30;
Arr1[3] = 40;
ShowMessage('Last index of the array: '+ IntToStr(High(Arr1)));
}
Output:
Last index of the array: 5
See Also