title: Iterate Over Struct; Easily Display Struct Fields And Values In a RichEdit Box
body: <p>Is there an easier way to display the <code>struct</code> fields and their corresponding values in <code>RichEdit</code> control?</p>
  
  <p>This is what I am doing now:</p>
  
  <pre><code>AnsiString s;
  
  s = IntToStr(wfc.fontColor);
  RichEdit1-&gt;Lines-&gt;Append(s);
  </code></pre>
  
  <p>etc...</p>
  
  <p>Is there an easier way than having to individually call each one? I want to read a binary file and then display the corresponding structure in a <code>RichEdit</code> control for a small utility I am building and have found no other way. I know how to read binary files and read the values into the <code>struct</code> already.</p>