type TA = (s1, s2, s3, s4, sB = ord('B')); //TA = (s1=1,s2=2,s3=3,s4=4,sB = ord('B')); procedure TForm1.Button1Click(Sender: TObject); var st1 : set of TA; st2 : set of TA; begin st1 := [s1, s2, s4, sb]; st2 := [s2, sb]; if st1 * st2 = [s2, sb] then Caption := 'Ok'; end;