Uses TypInfo;
Type TMyEnum = (meFirst, meSecond, meThird);
Var I: Integer;
Begin
For I := ord(Low(TMyEnum)) To ord(High(TMyEnum)) Do
Begin
Writeln(GetEnumName(TypeInfo(TMyEnum), I));
End;
End.
VXNlcyBUeXBJbmZvOwpUeXBlIFRNeUVudW0gPSAobWVGaXJzdCwgbWVTZWNvbmQsIG1lVGhpcmQpOwpWYXIgSTogSW50ZWdlcjsKQmVnaW4KICBGb3IgSSA6PSBvcmQoTG93KFRNeUVudW0pKSBUbyBvcmQoSGlnaChUTXlFbnVtKSkgRG8KICBCZWdpbgogICAgV3JpdGVsbihHZXRFbnVtTmFtZShUeXBlSW5mbyhUTXlFbnVtKSwgSSkpOwogIEVuZDsKRW5kLg==