title: DELPHI Change Property of Object stored in Variable
body: <p>Is there a way to change the property of a <code>TImage</code> which is stored in a variable?</p>
  
  <p>I have a function that writes the <code>Name</code> propery of a <code>TImage</code> in the <code>FigureSelectedName</code> variable, and it writes the field Name in the <code>FieldSelected</code> variable.</p>
  
  <p>Now my problem is: </p>
  
  <pre><code>FieldSelectedName.top
  FieldSelectedName.left
  </code></pre>
  
  <p>This gives a error in Delphi (<em>Illegal qualifier</em>)</p>
  
  <pre><code>function moveFigure(FigName:String; FieldName:String):boolean;
  var
    x:Integer;
    y:Integer;
  begin
    if (FigureSelected=true) and (FieldSelected=true) then
     begin
       x := strtoint(FieldSelectedName[2]);
       y := Ord(FieldSelectedName[1])-64;
  
       FigureSelectedName.top  := 80 + (x * 70);
       FigureSelectedName.left := 80 + (y * 70);
     end;
  end;
  </code></pre>