I have a set of enumeration values that I need to convert to text and then back to a set.
I believe that GetSetProp and SetSetProp from TypInfo unit would allow to do this but I have no idea on to get it to work. Any idea on how I can use GetSetProp and SetSetProp to accomplish 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 := ????