Allen, That is the best idea yet. I appreciate it. Thanks, rich! On 9/15/2015 9:12 AM, Allen Mulvey wrote: > Why not just put the four values in an array and use your > data value as the index to the array? > > Allen > > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .