title: IDL: Accessing struct fields using field names stored in variables?
body: <p>If I have a struct with a fieldname 'fieldname', is it possible to access the data in that field using only the variable?</p>
  
  <p>ie.</p>
  
  <p>x = 'fieldname'</p>
  
  <p>is it possible to do </p>
  
  <p>data = struct.(x) in some way? I want to use the string in x as the field name.  </p>