Multiple IF may be more complex than CASE, but it allows multiple options to be defined. Your CASE allows ACTION to be a single integer value representing ONE function.

With multiple IF statements comparing the Bit value, ACTION can be a number from 0 to 255 and will allow 8 options to be on/off in up to 256 combinations. Higher values for ACTION = more options and combinations.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D