title: GetEnumName TypeInfo problems (pascal / Delphi console)
body: <p>Working on a console application using Delphi 7, and have run into a problem. I get an error on line 26 after <pre>str := GetEnumName(TypeInfo (words[3].group),</pre> </p>
  
  <p>The error reads "[Error] Project1.dpr(26): TYPEINFO standard function expects a type identifier" if anyone could help with this, it would be a great help!</p>
  
  <p>Cheers!</p>
  
  <pre><code>program Project1;
  
  {$APPTYPE CONSOLE}
  
  uses
    SysUtils,
    TypInfo;
  
  type
    wordset = Record
      word  : String;
      group : (flavour, colour, place, animal);
    end;
  Var
    words : Array [1..50] of wordset;
    str : string;
    groups: string;
  Begin
    words[1].word  := 'chocolate';
    words[1].group := flavour;
    words[2].word  := 'vanilla';
    words[2].group := flavour;
    words[3].word  := 'strawberry';
    words[3].group := flavour;
  
    str := GetEnumName(TypeInfo (words[3].group), integer(group));
  
    readln;
  end.
  </code></pre>