title: convert string to set type
body: <p>In my application I have many sets defined:</p>
  
  <pre><code>eBlockTypes = (btNone,btUndefined,btStone, btYellowFlower, btWoodBrown...);
  
  sMinerals = set of eBlockTypes; 
  
  var
    mineralsRare: sMinerals;
    mineralsPlants: sMinerals;
    mineralsAll: sMinerals;
    mineralsDeep: sMinerals;
    mineralsWalkable: sMinerals;
    mineralsDiggable: sMinerals; 
  </code></pre>
  
  <p>then I have an object that has 'sMinerals' as one of it's fields. Is it possible to read set's 'name' when loading object properties from file? </p>
  
  <p>edit: more details. Let's say that object definition in file looks like that:</p>
  
  <pre><code>[item]
  Computer
  [requires]
  3 Circuit board
  1 Medium CPU
  3 Plastic
  [placement]
  mineralsWalkable
  </code></pre>
  
  <p>so I can parse the file and read all the properties besides the set 'mineralsWalkable'.
  I know that I could compare that string with some TStrings holding all the sets names but the quiestion is: is it possible get that set by converting the string to variable somehow?</p>