Is it possible to make an if..then expression something like this:
Code:
if IntegerValue = [0,2,4..6] then
Where IntegerValue is my integer variable, and I want to execute the then statement if IntegerValue is any of 0,2,4,5 & 6.
It seems like something basic, and I have done this OK:
Code:
if not (Key in [#8, #13, #9, '0'..'9', 'a'..'z', 'A'..'Z']) then
Steve (Delphi 2007 & XP)