>The select case also supports boolean types
>
>As to the speed, you may want to test it.
>
>
>First case :
>String comparison is slow
>
>Second case needs quit a bit of work
> - evaluation of the TypeOf operator
> - compare with the type ( System.Web.UI.WebControls.TextBox )
> - compare the result with the Select Case value ( True)
>
>Think string comparison will be the faster - but -: I do not know
Thanks