From Clomosy Docs

Revision as of 08:32, 7 April 2025 by ClomosyManager (talk | contribs) (Created page with "<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> function Low(var X): Integer; </div> The Low function returns the first index of the given array. This is a value that represents the starting point of the array. In most arrays, the indices typically start from zero, but the Low function can correctly return the starting index of any array. The Low function is particularly useful when dealing with dynamically size...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Low function returns the first index of the given array. This is a value that represents the starting point of the array. In most arrays, the indices typically start from zero, but the Low function can correctly return the starting index of any array. The Low function is particularly useful when dealing with dynamically sized arrays or when the starting index is different.

Example

var 
 Arr1: Array [0..5] of Integer;

{
  Arr1[0] = 10;
  Arr1[1] = 20;
  Arr1[2] = 30;

  ShowMessage('Starting index of the array: '+ IntToStr(Low(Arr1)));
}

Output:


See Also