function Hi(X): Byte;返回X的高字节; X:word 或 integer,即使是integer,Hi只处理低16位Hi($12345678)=$56 Hi($1234)=$12
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 typeHigh returnsOrdinal type (includes Int64)The highest value in the range of the typeArray typeThe highest value within the range of the index type of the array. For empty arrays, High returns –1.short string typeThe declared size of the stringOpen arrayThe value, of type Integer, giving the number of elements in the actual parameter minus oneshort string parameterThe value, of type Integer, giving the number of elements in the actual parameter minus one