Yes. You need to typecast the value to an integer type. The integer type is based on the size of the enumeration.
For 1-8 values, typecast it as Byte. For 9-16, use a Word. For 17-32, use a Cardinal, for 33-64, use Int64 Quoting Ken Phipps <[EMAIL PROTECTED]>: > Is there a way to save a set of enumerated values to the > registry, basically saving/loading directly from/to the > 'set' variable? Example: > > TTest = (tOne,tTwo,tThree); > TTestSet = set of TTest; > > Is it possible to save/load a variable of type TTestSet > to a single registry value? > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi > _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

