by
benW » Fri Dec 23, 2011 1:21 pm
Hi jhentzen!
Firstly, Happy Holidays!
You are right that Enumerated fields can be used as you wish, however the syntax is a closely guarded secret - so as long as you don't tell anyone

, here is an example:
Create the custom fields to report your result (for example, CField1 and CField2 for samples named a and b respectively)
Create the enumerated custom field, such as a Peak type. You must set the "Use As:" property to "Field".
Then write the custom field:
ENUM(EQI(SampleName,"a"),EQI(SampleName,"b"))
This will enumerate when the SampleName is a or A, or b or B.
In the translation box:
for value 0 type CField1 (fc)
for value 1 type CField2 (fc)
The enumerated field will now report the value in CField1 for sample a or CField2 for sample b.
Hope this helps
Update how you get on with this...
Ben