Sean Cross wrote: > I would suggest > > If (X = []) or (X = [a]) or (x = [b]) or (X = [a,b]) then... > > But the original code seems fine to me.
What I think is the most direct way of writing it is this: if X <= [a,b] then That's checking whether X is a subset of {a,b}. You could also do this: if X + [a,b] = [a,b] then -- Rob __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk