Home  |  Delphi .net Home  |  System.Array  |  GetLowerBound Method
  
GetLowerBound  
Method  
Gets the lower bound of a specified array dimension
Array Class
System NameSpace
CF1.  Function GetLowerBound ( Dimension : Integer ) : Integer;
CF : Methods with this mark are Compact Framework Compatible
Description
The GetLowerBound method returns the starting index for the specified array Dimension.
Microsoft MSDN Links
System
System.Array
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  myArray : System.Array;
  lower   : Integer;

begin
  // Create a 10 element single dimension array of Integers
  myArray := System.Array.CreateInstance(TypeOf(Integer), 10);

  // Get the lower bound of the first and only (0) dimension
  lower := myArray.GetLowerBound(0);
  Console.WriteLine('LowerBound = {0}', lower.ToString);

  Console.ReadLine;
end.
   LowerBound = 0
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author