Board index » cppbuilder » Re: How I translate this in C++ fom Delphi ?
Dennis Jones
![]() CBuilder Developer |
Re: How I translate this in C++ fom Delphi ?2003-06-24 10:15:09 AM cppbuilder113 "Andrei Ariescu" < XXXX@XXXXX.COM >wrote in message QuoteNo ... this is not what I want ... if ( Options.Contains(goRowSelect) && Options.Contains( goEditing ) && ... ) 2) or create a new Set containing the items you are looking for, do an intersection between the sets, and see if the intersection is equal to the new Set. This is untested code, but the basic idea behind it should be correct: // begin untested code Set MySet; // initialize MySet MySet << goRowSelect << goEditing << goTabs; // if this test is 'true', Options SHOULD contain goRowSelect, goEditing, and goTabs // (it might also contain other elements) if ( (Options * MySet) == MySet ) ... // end untested code - Dennis |