|
Navigation: Function Reference > General Utility Functions > high() high() |
Top Previous Next |
high( type or variable ) : Ordinal Type;
Returns the highest allowed value of either a type or a variable of that type. It would typically be used in conjunction with arrays and, for arrays, it returns the highest index value in that array.
Parameters
Type or Variable |
Ordinal Type |
type
TArray = array[0..10] of Integer;
high(TArray) would return 10 since 10 is the highest allowable index in that array type.
Important!: It is critical that you do not confuse this Pascal high() utility function with the high price of a data series. When customizing a user script, always use Symbol.high() rather than just high(). Not paying attention to this can cause errors that are difficult to debug.
See Also: