title: How to set NULL to Variant field using rtti
body: <p>I have a problem setting null to a variant field using rtti.</p>
  
  <p>Suppose I have class like this:</p>
  
  <pre><code>TClass1 = class
    Field1:Integer;  
    Field2:Variant; 
  end;
  </code></pre>
  
  <p>when I get access to a Field1 I can do:<br></p>
  
  <pre><code>Field.SetValue(TObject(ValueObject.AsObject), 1);
  </code></pre>
  
  <p>but it seems I can not do this with Field2:<br></p>
  
  <pre><code>Field.SetValue(TObject(ValueObject.AsObject), null);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Field.SetValue(ValueObject.AsObject, TValue.FromVariant(NULL));
  </code></pre>
  
  <p>So, what I want is to be able to set null value to a Field2 of class above. Is it possible? Any ideas would be appreciated.</p>
  
  <p>Goran</p>