Hi,
I have had the same problem, and concluded that you can only use a switch
if you convert the type to a string, like you mentioned.
If you still want to use the readl type, you can use a multi-level if..else
statement.
Bennie Haelen
"bdwise" <br************@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
I want to do a switch statement on the value returned from getype(),
but the value is not an integral type. Is there a way to do something
besides gettype().ToString() and not use an if statement?