Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set of variables 1

Status
Not open for further replies.

egodette

Technical User
Jun 12, 2002
222
US
Looking for a way to see if a value exists in a set of variables.
Example.
if x="gb" or x="au" or x="eu" then

I would like to say
if x in ("gb","au","eu") then
 
Hi,
Code:
Select case x
   Case "gb","Audi","eu"
     'Do stuff here
   Case else
     'Else stuff here if U have N E
End select

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top