1 2 3 4 5 6 7 8 9
type TDigit = set of '0'..'9'; var digits : TDigit; begin digits := ['0'..'9']; if key in digits then someting; end;