当前位置:编程学习 > Delphi >>

delphi中找不到LOW和HIGH函数的定义

答案:应该是这个啊,帮助里有.

function Low(X);

In Delphi code, call Low to obtain the lowest value or first element of an Ordinal, Array or ShortString. Result type is X, or the index type of X where X is either a type identifier or a variable reference.

Type Low returns

Ordinal type (includes Int64) The lowest value in the range of the type
Array type The lowest value within the range of the index type of the array
short string type Returns 0
Open array Returns 0
short string parameter Returns 0



function High(X);

Description

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 ?.
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

上一个:Delphi如何把程序模块化呢?
下一个:除了delphi外还有哪个语言能做到如下功能

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,