Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə75/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   71   72   73   74   75   76   77   78   ...   294
DelphiLanguageGuide

Function Parameter
Return value
Remarks
Ord
ordinal expression
ordinality of expression's value
Does not take Int64 arguments.
Pred
ordinal expression
predecessor of expression's value
Succ
ordinal expression
successor of expression's value
High
ordinal type identifier or variable of
ordinal type
highest value in type
Also operates on short-string types
and arrays.
Low
ordinal type identifier or variable of
ordinal type
lowest value in type
Also operates on short-string types
and arrays.
For example, 
High(Byte)
 returns 255 because the highest value of type Byte is 255, and 
Succ(2)
 returns 3
because 3 is the successor of 2.
The standard procedures 
Inc
 and 
Dec
 increment and decrement the value of an ordinal variable. For example, 
Inc
(I)
 is equivalent to 
I := Succ(I)
 and, if 
I
 is an integer variable, to 
I := I + 1
.
Integer Types
An integer type represents a subset of the whole numbers. The generic integer types are Integer and Cardinal; use
these whenever possible, since they result in the best performance for the underlying CPU and operating system.
The table below gives their ranges and storage formats for the Delphi compiler.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   71   72   73   74   75   76   77   78   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin