Keith
Are you using VB.NET or C#
.. 'cause the
VB.Net SELECT..CASE conditional testexpression must evaluate to one of the elementary data types (Boolean, Byte, Char, Date, Double, Decimal, Integer, Long, Object, Short, Single, and String).
whereas the
C# SWITCH..CASE conditional testexpression must evaluate to an integral or string type expression