Registriert seit: 12. Aug 2003
Ort: Soest
4.016 Beiträge
Delphi 10.1 Berlin Enterprise
|
AW: Durch Set iterieren geht offenbar nicht. Welche Alternative?
21. Nov 2019, 17:19
Delphi-Quellcode:
uses
TypInfo;
type TSeq = (
tCreate,
tWait,
tGet,
tStep1,
tStep2,
tStep3,
tEnd);
const
SeqAll = [tCreate..tEnd];
SeqPart = [tCreate, tStep1, tEnd];
var
s: TSeq;
begin
for s in SeqAll do
Write(GetEnumName(TypeInfo(TSeq), Ord(s)), ' ' );
Writeln;
for s in SeqPart do
Write(GetEnumName(TypeInfo(TSeq), Ord(s)), ' ' );
Writeln;
Readln;
end.
|
|
Zitat
|