我知道如何将枚举类型转换为整数.
type TMyType = (mtFirst, mtSecond, mtThird); var ordValue:integer; enumValue:TMyType; ... ordValue:= Ord(mtSecond); // result is 1
但是,如何进行逆运算并将整数转换为枚举类型?
delphi integer enumeration casting
casting ×1
delphi ×1
enumeration ×1
integer ×1