I have a set of enumeration values that I need to convert to text, and then return to the set.
I believe that GetSetProp and SetSetProp from the TypInfo module will allow this, but I don’t know how to make it work. Any idea on how I can use GetSetProp and SetSetProp for this?
type
TSomething = (sOne, sTwo, sThree, sFour, s Five);
TSomethings = set of TSomething;
var
Something: TSomethings;
s: string;
...
Something := [sOne, sThree];
s := GetSetProp(????);
Something := [];
// then use SetSetProp to set Something back to [sOne, sThree]
Something := ????
source
share