Autor Beitrag
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Di 24.08.10 13:29 
Hi DF!

Wie bestimme ich in folgender Konstellation, ob das übergebene set of leer ist?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
type TAttributes = (atbReadOnly, atbSystem, atbHidden, atbArchive, atbNotIndexed);
     TAttributeSet = set of TAttributes;

class procedure TFoo.Boo(Attribs: TAttributeSet)
begin
 // ist Attribs leer?
end;

_________________
Die Lösung ist nicht siebzehn.
Stundenplan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128
Erhaltene Danke: 32

Win 7
Delphi 7 Pers., C# (VS 2010 Express)
BeitragVerfasst: Di 24.08.10 13:39 
Moin!
Mit if Attribs = [] then? :gruebel: Oder hab ich das jetzt falsch verstanden?
Viele Grüße,
Stundenplan.