title: Reference Object Member By String Name?
body: <p>Sorry for the odd question name folks, I'm not sure I properly know how to phrase this question, but I am working with javascript, and would like to reference an objects member, but abstractly by string, is this possible in JavaScript? (or any language for that matter?) eg,..</p>
  
  <p>The MemberName is determined when the function is run, could be 'Product Code' for example, but selected row will always represent a selected row in a grid. is this even possible? I am trying to create a generic function which will allow me to pass any grid to it, with the name of the column i want the value from - if that helps.</p>
  
  <pre><code>function GetSpecificColumnFromSelectedRow(SelectedRow, MemberName) {
      return SelectedRow.MemberName; 
  }
  </code></pre>