Hi,

Is there any Operator like "in" in VB which have the similar function as in SQL?

What I want to do is:


if x="a" or x="b" or x="c" then
'do something
end if

May I use this:
if x in ("a","b","c") then
'do something
end if

Thanks!


Regards,

Michi
MCSE, MCDBA