Thanks to all who replied. The form "if X <= [a,b] then" reads more intuitively to me, and changing the code to that form does not change the behavior. I finally understand! :-)
At 09:06 PM 4/17/2007, you wrote: >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 Regards, Sid Gudes PIA Systems Corporation [EMAIL PROTECTED] __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk