First off, I apologize for my lack of skills (especially in the case where this solution is trivial). I need to work with a large number of enumerated variables, and know there has to be an easy way to do it without having to explicitly write it out.
An example may be the following,
Thanks! (Thanks even more if you can include a simple example of how I would do this!)
intermediate code that is different for each value of i and determines the values of 'd'
pl#= d; //where # is whatever the current value of i is