var _set: set of 0..19;
If you know that there is up to 20 items.
It would minimize the _set memory use to the minimum.
AFAIR maximum set size is of 256 items.
]]>var
_set : set of byte; //has for example 20 elements
begin
if value in _set
then ...