Returns the highest value in the range of an argument.
procedure High(X);
High( X);
System
In Delphi code, call High to obtain the upper limit of an Ordinal, Array, or ShortString value. The result type is X, or the index type of X.
X is either a type identifier or a variable reference. The type denoted by X, or the type of the variable denoted by X, must be one of the following:
For this type |
High returns |
Ordinal type (includes Int64) |
The highest value in the range of the type |
Array type |
The highest value within the range of the index type of the array. For empty arrays, High returns –1. |
short string type |
The declared size of the string |
Open array |
The value, of type Integer, giving the number of elements in the actual parameter minus one |
short string parameter |
The value, of type Integer, giving the number of elements in the actual parameter minus one |
VarArrayHighBound
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|