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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if not safetynivo in (1,2) then? 1

Status
Not open for further replies.

checkOut

Technical User
Oct 17, 2002
153
NL
Is the construction
if not safetynivo in (1,2) then
'safetynivo is een functie
else
end if
 
You didn't ask a question :)

If safetynivo <> 1 and safetynivo <> 2 then
Else
End If --------------------------------------
It's not the monsters under your bed, it is the men next door.
That make you fear, make you cry. Make you cry for the Child.
All the wars are fought amongst those lonely men. Unharmed, unscarred.
 
u're right ;)
but I mean if the structure is right. Of course I know I can split it but what when I have 30 values?

In SQL the construction SELECT * FROM .. WHERE .. In (,,) is possible, so maybe there is a same construction in IF then else

thanx
 
How about

Select case safetynivo
case 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (and so on)?
'Do things
case else
'do things
end select --------------------------------------
It's not the monsters under your bed, it is the men next door.
That make you fear, make you cry. Make you cry for the Child.
All the wars are fought amongst those lonely men. Unharmed, unscarred.
 
u're right, things sometimes are so simple u're looking over them,

thnx and becomes a STAR!! ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top