Z
zhaojianzhu
Unregistered / Unconfirmed
GUEST, unregistred user!
TCondition = (e1,e2=2);
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
//
ShowMessage(GetEnumName(TypeInfo(TCondition), Ord(1)));
ShowMessage(inttostr(GetEnumValue(TypeInfo(TCondition), 'e1')));
end
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
//
ShowMessage(GetEnumName(TypeInfo(TCondition), Ord(1)));
ShowMessage(inttostr(GetEnumValue(TypeInfo(TCondition), 'e1')));
end