fork(1) download
  1. Uses TypInfo;
  2. Type TMyEnum = (meFirst, meSecond, meThird);
  3. Var I: Integer;
  4. Begin
  5. For I := ord(Low(TMyEnum)) To ord(High(TMyEnum)) Do
  6. Begin
  7. Writeln(GetEnumName(TypeInfo(TMyEnum), I));
  8. End;
  9. End.
Success #stdin #stdout 0s 484KB
stdin
Standard input is empty
stdout
meFirst
meSecond
meThird