I need to save the option value in a TStringList while I try this
var list : TStringList; v : OleVariant; List..AddObject('Item1',v);
or
List..AddObject('Item1',TObject(v));
but in both cases the code does not compile because the type is invalid or the types are incompatible.
so the question is, how can I save the value of a variant in a TStringlist?
source share